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

How to Change mm/dd/yyyy

1 Answer 117 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Md.Hasanuzzaman
Top achievements
Rank 1
Md.Hasanuzzaman asked on 03 Oct 2011, 01:59 PM
Hi.
    I want to change mm/dd/yyyy to yyyy-mm-dd. Is it possible ?
please give me a xaml example.
thank you.

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 04 Oct 2011, 09:17 AM
Hi Md.Hasanuzzaman,

The right way to edit the dispayed date is this:
this.radDateTimePicker.Culture = new System.Globalization.CultureInfo("en-US");
this.radDateTimePicker.Culture.DateTimeFormat.ShortDatePattern = "yyyy-mm-dd";

Hope this helps.

All the best,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DatePicker
Asked by
Md.Hasanuzzaman
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or