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

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