Converts the value of the local time to UTC time. Note that there may be different possible interpretations at the daylight time boundaries.
public System.DateTime ToUniversalTime(
System.DateTime
)
'Declaration
Public Function ToUniversalTime( _
ByVal As System.Date _
) As System.Date
Parameters
- local
- The local time to convert.
Return Value
The UTC DateTime.
Exception | Description |
System.NotSupportedException | Thrown if the method failed due to missing platform support. |