ComponentOne Menu for ASP.NET Web Forms
C1.Web.Wijmo.Controls.45 Assembly / C1.C1Schedule Namespace / TimeZoneInfo Class / ToUniversalTime Method
The local time to convert.

In This Topic
    ToUniversalTime Method
    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