Scheduler for WPF | ComponentOne
C1.Schedule Namespace / TimeZoneInfo Class / ToLocalTime Method
The UTC time to convert.

In This Topic
    ToLocalTime Method
    In This Topic
    Converts the value of the utc time to a local time in this time zone.
    Syntax
    'Declaration
     
    
    Public Function ToLocalTime( _
       ByVal dateTime As Date _
    ) As Date
    public DateTime ToLocalTime( 
       DateTime dateTime
    )

    Parameters

    dateTime
    The UTC time to convert.

    Return Value

    The local time.
    Exceptions
    ExceptionDescription
    The Kind property of dateTime is Local.
    See Also