This documentation is archived and is not being maintained.
DateTimeOffset::ToUniversalTime Method
Visual Studio 2010
Converts the current DateTimeOffset object to a DateTimeOffset value that represents the Coordinated Universal Time (UTC).
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System::DateTimeOffsetAn object that represents the date and time of the current DateTimeOffset object converted to Coordinated Universal Time (UTC).
This method returns a DateTimeOffset object whose Offset property is set to zero.
Both the value of the current DateTimeOffset object and the value of the DateTimeOffset object returned by the method call represent the same point in time. That is, if both are passed to the DateTimeOffset::Equals(DateTimeOffset, DateTimeOffset) method, the method will return true.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: