This is a migrated thread and some comments may be shown as answers.

Datepicker ignoring StringFormat

1 Answer 104 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 14 Apr 2011, 05:13 PM
I have a datepicker

<telerik:RadDatePicker DateSelectionMode="Month" SelectedValue="{Binding Mode=TwoWay, Path=tenderDateStart, StringFormat=\{0:MMMM\, yyyy\}}"/>

which should be formatting the text in the provided manner (MMMM\, yyyy) = Month, Year

however the date still results in mm/dd/yy.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 15 Apr 2011, 08:54 AM
Hi Mark,

Please, check this article related to DatePicker/DateTimePicker Formatting. You can use the DateTimeFormatInfo class to set custom formatting for the date value.

I hope this helps.

All the best,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DatePicker
Asked by
Mark
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or