Scheduler for WPF | ComponentOne
C1.C1Schedule Namespace / TimeZoneInfo Class / ToUniversalTime Method
The local time to convert.

In This Topic
    ToUniversalTime Method (TimeZoneInfo)
    In This Topic
    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 Date _
    ) As Date
    public DateTime ToUniversalTime( 
       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