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

DatePicker not formatting DateTime

1 Answer 48 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Martin Sarosi
Top achievements
Rank 2
Martin Sarosi asked on 05 Mar 2010, 01:10 PM
We might use any culture in our system and we are allowed to override the DateTime formats for it.

for example en-GB usually the shortdate format gives 25/02/2010 but we might override it with MM/dd/yyyy for example which gives 02/25/2010 a US style format.

This seems to work when the DateInput.ReadOnly is set to false but doesn't seem to work when ReadOnly is set to true.

Any ideas?

Martin

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 10 Mar 2010, 04:44 PM
Hello Martin,

You can directly set the DateInput.DateFormat property with the required format. The attached sample project demonstrates this approach.

I hope this helps,
Martin
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
Calendar
Asked by
Martin Sarosi
Top achievements
Rank 2
Answers by
Martin
Telerik team
Share this question
or