ComponentOne Scheduler for WPF and Silverlight
ToUniversalTime Method

C1.C1Schedule Namespace > TimeZoneInfo Class : ToUniversalTime Method
The local time to convert.
Converts the value of the local time to UTC time. Note that there may be different possible interpretations at the daylight time boundaries.
Syntax
'Declaration
 
Public Function ToUniversalTime( _
   ByVal local As System.Date _
) As System.Date
public System.DateTime ToUniversalTime( 
   System.DateTime local
)

Parameters

local
The local time to convert.

Return Value

The UTC DateTime.
Exceptions
ExceptionDescription
Thrown if the method failed due to missing platform support.
See Also

Reference

TimeZoneInfo Class
TimeZoneInfo Members