Scheduler for WinForms | ComponentOne
C1.Win.C1Schedule.4.5.2 Assembly / 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 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