telerik RadDateTimePicker Culture formant (MM/DD/YY HHMM) ?

SenaAK
SenaAK used Ask the Experts™
on
<telerik:DataFormDataField Label="Occurred:"
                                              DataMemberBinding="{Binding TimeOccurred, Mode=TwoWay}"
                                              LabelPosition="Above">
<telerik:RadDateTimePicker SelectedValue="{Binding TimeOccurred, Mode=TwoWay}"
                                              DateTimeWatermarkContent="Enter date and time"
                                              TimeInterval="0:30:0" Culture="en-GB"/>

en-GB gives me DD/MM/YYYY HH:MM is there one that gives me MM/DD/YY HH:MM or MM/DD/YYYY HH:MM
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
developmentguruPresident

Commented:
You notice that the format you are trying to use is attempting to use MM for month as well as for minutes?

The controls I am used to working with would format it this way:
MM/DD/YYYY HH:NN

If the control allows formatting then how you format it should work if you want to switch days and months, but I have yet to see one that will try to distinguish months from minutes based on the position within the mask.  Let me know if you need more.

Author

Commented:
Adding the <<\/dd]\yy HHmm String format helped on displaying the datetime but when I use the DateTimpPicker the Culture='en-GB' is still in DD/MM/YYYY HH:MM  - I would like them both to display with the military datetime format --- are the Cultures documented anywhere?

<telerik:DataFormDataField Label="Occurred:"
                                              DataMemberBinding="{Binding TimeOccurred, Mode=TwoWay, StringFormat='MM\/dd\/yy HHmm'}"
                                              LabelPosition="Above">
<telerik:RadDateTimePicker SelectedValue="{Binding TimeOccurred, Mode=TwoWay}"
                                              DateTimeWatermarkContent="Enter date and time"
                                              TimeInterval="0:30:0" Culture="en-GB"/>
President
Commented:
I attempted to see if I could help since it appeared you had an error in your format statement.  I do as little with .NET as possible since I like to feel proud of the projects I finish and .NET does not allow for smooth memory control (causing pregnant pauses which look terrible - not as big an issue with web pages).  I did find some documentation on cultures, pay special attention to the links on the left side of the page as there is a bit to read.

http://msdn.microsoft.com/en-us/library/bz9tc508.aspx

Author

Commented:
Did not directly answer the telerik culture formatting issue.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial