How to set custome date display format in WPF

1 Answer 3 Views
DatePicker DateTimePicker GridView
Parthiban
Top achievements
Rank 1
Parthiban asked on 14 Jul 2025, 09:43 AM | edited on 14 Jul 2025, 09:50 AM

I using the <telerik:RadDatePicker> 

 DisplayFormat = (Long or short) only there I need a customer format how we archive.

 

Example : 1 July 2025, 1 JUL 2025

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 14 Jul 2025, 09:51 AM

Hello Parthiban,

May I ask if it would be possible to give the following article from our documentation a try? It showcases how to set a different culture and modify the display pattern: 

WPF DateTimePicker - How to set different culture - Telerik UI for WPF

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Parthiban
Top achievements
Rank 1
commented on 14 Jul 2025, 09:55 AM

But how to archive the in XAML.

Just I want to display the format 1JUL2025
Stenly
Telerik team
commented on 14 Jul 2025, 11:55 AM

Hello Parthiban,

The properties of the DateTimeFormatInfo class cannot be set directly in XAML. Instead, this customization will have to be done in code.

What I could suggest would be to implement an attached property of the type of string, which you can set in XAML to the desired pattern, and apply it in its property callback method.

Parthiban
Top achievements
Rank 1
commented on 14 Jul 2025, 12:03 PM

Ok thank you 
Tags
DatePicker DateTimePicker GridView
Asked by
Parthiban
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or