FromXmlDateTime and ToXmlDateTime

2 posts, 0 answers
  1. NorthGates
    NorthGates avatar
    13 posts
    Member since:
    Oct 2012

    Posted 08 Dec 2012 Link to this post

    Just wondering if the DateTimePicker can resolve xml date time ie: yyyy-mm-ddThh:mm:sszzzzzz.

    I am trying to get/set the value to and from XML but cannot see how I can achieve this with this control. For example, provided it is possible, will it remember when it is UTC or Local.
  2. Peter
    Peter avatar
    1148 posts

    Posted 12 Dec 2012 Link to this post

    Hi Luc,

    Thank you for writing.

    The type of RadDateTimePicker's Value property is DateTime. You should parse manually your XML date to the .NET type DateTime and pass the result to the Value property.

    I would like to clarify that RadDateTimePicker does not support milliseconds editing. I would suggest that you parse the value to seconds, without milliseconds.

    Let me know if you have additional questions.

    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
  3. DevCraft banner
Back to Top