Converts the value of the local time to UTC time.
Note that there may be different possible interpretations at the daylight time boundaries.
Namespace:
C1.C1ScheduleAssembly: C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)
Syntax
C# |
---|
public DateTime ToUniversalTime( DateTime local ) |
Visual Basic |
---|
Public Function ToUniversalTime ( _ local As DateTime _ ) As DateTime |
Parameters
- local
- Type: System..::..DateTime
The local time to convert.
Return Value
The UTC DateTime.Exceptions
Exception | Condition |
---|---|
System..::..NotSupportedException | Thrown if the method failed due to missing platform support. |