How do I convert a DateTime structure to its equivalent RFC 3339 formatted string representation and/or parse this string representation back to a DateTime structure? The RF
In .NET (assuming UTC):
datetime.ToString("YYYY-MM-DD'T'HH:mm:ssZ")
DateTime.Parse() can be used to convert back into a DateTime structure.
DateTime.Parse()
DateTime