TimeZoneInfo.ConvertTimeToUtc Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Converts a date and time to Coordinated Universal Time (UTC).

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticConvertTimeToUtc(DateTime)

Converts the specified date and time to Coordinated Universal Time (UTC).

System_CAPS_pubmethodSystem_CAPS_staticConvertTimeToUtc(DateTime, TimeZoneInfo)

Converts the time in a specified time zone to Coordinated Universal Time (UTC).

Return to top
Show: