Formatting DateTime Property Values
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

Formatting DateTime Property Values


Updated: August 4, 2015

DateTime property values must be represented as combined Coordinated Universal Time (UTC) values. The Timestamp property, which is an opaque property maintained by the Table service, is also represented in this format. UTC formats are described by ISO 8601.

An example of the combined UTC format is as follows. The date is specified first, followed by the literal string "T", which designates the beginning of the time element. The literal string "Z" at the end of the string designates that the time is expressed in UTC:


The following code example shows one way to construct the combined UTC format from the current UTC date:

string roundtripDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.RoundtripKind);
© 2016 Microsoft