Displaying Zulu time

4 posts, 0 answers
  1. Dan Entzian
    Dan Entzian avatar
    2 posts
    Member since:
    Mar 2010

    Posted 03 Oct 2014 Link to this post

    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?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Oct 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Dan Entzian
    Dan Entzian avatar
    2 posts
    Member since:
    Mar 2010

    Posted 06 Oct 2014 in reply to Yana Link to this post

    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.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Oct 2014 Link to this post

    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.

     
Back to Top