Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.​Xml.​XmlDateTimeSerializationMode

Assembly: System.Xml.ReaderWriter

Specifies how to treat the time value when converting between string and <see cref="T:System.DateTime" /> .

Values

Local
Treat as local time. If the <see cref="T:System.DateTime" /> object represents a Coordinated Universal Time (UTC), it is converted to the local time.
Utc
Treat as a UTC. If the <see cref="T:System.DateTime" /> object represents a local time, it is converted to a UTC.
Unspecified
Treat as a local time if a <see cref="T:System.DateTime" /> is being converted to a string. If a string is being converted to <see cref="T:System.DateTime" /> , convert to a local time if a time zone is specified.
RoundtripKind
Time zone information should be preserved when converting.