Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in ASP.NET MVC > Need information about date picker

Not answered Need information about date picker

Feed from this thread
  • Kavi avatar

    Posted on Oct 30, 2011 (permalink)

    Hi ,

      I am using radDatetImepIcker as a seperate control .(Not inline with grid or anything else). I need to set date/time in picker by default based on my server time zone like ‘DD.MM.YYYY HH24:MI:SS TZR’.


    Please advice as soon as earlier.

    THanks,
    Priya

    Reply

  • Vasil Vasil admin's avatar

    Posted on Nov 2, 2011 (permalink)

    Hello Kavi,

    The RadDateTimePicker (and the DateInput itself) does not manage the timezones.
    So you could use format expression like: "dd.MM.yyyy hh:mm:ss".
    When you get the SelectedDate you will get a DateTime object parsed with unspecified time zone. You could later convert the time in different timezone manually if you need.

    Please also note that the DateTime object itself does not store information about the timezone. For more information check these resources:
    http://msdn.microsoft.com/en-us/library/system.datetime.kind.aspx
    http://msdn.microsoft.com/en-us/library/system.datetime.utcnow.aspx
    http://msdn.microsoft.com/en-us/library/system.datetime.aspx

    Greetings,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in ASP.NET MVC > Need information about date picker