How do I parse and convert a DateTime to the RFC 3339 date-time format?

You don’t need to write your own conversion code. Just use

XmlConvert.ToDateTime(string s, XmlDateTimeSerializationMode dateTimeOption)

to parse a RFC-3339 string, and

XmlConvert.ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption)

to convert a (UTC) datetime to a string.

Ref.
http://msdn.microsoft.com/en-us/library/ms162342(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/ms162344(v=vs.110).aspx

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)