DateTimeOffset::ToUniversalTime Method ()
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.
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1