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

FromXmlDateTime and ToXmlDateTime

1 Answer 52 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
NorthGates
Top achievements
Rank 1
NorthGates asked on 08 Dec 2012, 08:31 AM
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.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Dec 2012, 05:00 PM
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.

Regards,
Peter
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
NorthGates
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or