Declined
Last Updated: 24 Mar 2014 11:55 by ADMIN
Hans
Created on: 12 Mar 2014 15:04
Category: DateTimePicker
Type: Feature Request
1
RadDateTimePicker: How can I define a custom format?
In your documentation you describe how to define custom format in ShortDatePattern and ShortTimePattern. But how can I use a format like CultureInfo.DateTimeFormat.SortableDateTimePattern or CultureInfo.DateTimeFormat.MonthDayPattern? It does not work at me.
The same problem I have, if I want to use long date and short time or short date and long time.

Thanks
2 comments
ADMIN
Yana
Posted on: 24 Mar 2014 11:55
RadDateTimePicker has its own parsing mechanism, that's why it does not support SortableDateTimePattern  and MonthDayPattern datetime formats. ShortDatePattern is used to format the date after it is parsed.
Hans
Posted on: 18 Mar 2014 09:25
I have find out the problem myself:
If you change the format after a value has been set, the format of the DateTime value doesn't change. In this case you must first set the value to e.g. null and set the value again. Then the value is shown in the correct format.