TimeZone.ToUniversalTime Method
Returns the Coordinated Universal Time (UTC) time that corresponds to a specified local time.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute]
public virtual DateTime ToUniversalTime (
DateTimetime
)
Parameters
- time
The specified local date and time.
Return Value
A DateTime object whose value is the UTC time that corresponds to the time parameter.
Remarks
Coordinated universal time (UTC) was previously known as Greenwich Mean Time (GMT). Local time is the date and time on the computer you are using. Offset is the difference between local time and UTC (local time = UTC + offset).
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.