System.Globalization.DateTimeStyles.AdjustToUniversal Field

Date and time are returned as a Coordinated Universal Time (UTC). If the input string denotes a local time, through a time zone specifier or DateTimeStyles.AssumeLocal, the date and time are converted from the local time to UTC. If the input string denotes a UTC time, through a time zone specifier or DateTimeStyles.AssumeUniversal, no conversion occurs. If the input string does not denote a local or UTC time, no conversion occurs and the resulting DateTime.Kind property is DateTimeKind.Unspecified.

Value: AdjustToUniversal

Syntax

DateTimeStyles AdjustToUniversal

Remarks

This value cannot be used with DateTimeStyles.RoundtripKind.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0