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

Displaying Zulu time

3 Answers 57 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Dan Entzian
Top achievements
Rank 1
Dan Entzian asked on 03 Oct 2014, 02:12 PM
I am trying to get the DateTimePicker to display in a Zulu time format using the following:

rdtpStartDate.Culture.DateTimeFormat.FullDateTimePattern = "dd HH:mmZ MMM yyyy";

It seems that FullDateTimePattern does not really affect anything and using the individual date and time patterns will not work it seems. Is there any way to obtain this format?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Oct 2014, 09:58 AM
Hi Dan,

I am afraid that it is not possible to set FullDateTimePattern format to DateTimePicker - you can set only Date and Time pattern separately depending on the DisplayFormat property.

We're sorry for any inconvenience caused.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Dan Entzian
Top achievements
Rank 1
answered on 06 Oct 2014, 03:55 PM
Thanks for the reply. Any other way to display in the above format? Normally I would use a converter but it does not look like we have direct access to the display text box.
0
Yana
Telerik team
answered on 07 Oct 2014, 10:08 AM
Hello Dan,

Please try it like this:

radDateTimePicker.DisplayFormat = DateTimePickerFormat.Long;
radDateTimePicker.Culture.DateTimeFormat.LongDatePattern = "dd HH:mmZ MMM yyyy";
radDateTimePicker.Culture.DateTimeFormat.LongTimePattern = "";

Note that this is a work-around and we cannot guarantee that it will work in all scenarios.

Regards,
Yana
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DateTimePicker
Asked by
Dan Entzian
Top achievements
Rank 1
Answers by
Yana
Telerik team
Dan Entzian
Top achievements
Rank 1
Share this question
or