TimeZoneHelper.ToClientTime(DateTime, String) Method

Converts a DateTime value from the specified time zone to the client time zone.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.Core.dll


public DateTime ToClientTime(
    DateTime sourceDateTime,
    string sourceTimeZoneId
Public Function ToClientTime(
    sourceDateTime As Date,
    sourceTimeZoneId As String
) As Date


Name Type Description
sourceDateTime DateTime

A DateTime value in the specified time zone.

sourceTimeZoneId String

A string that specifies the destination time zone. The string must be one of the available System.TimeZoneInfo.Id values.


Type Description

A DateTime value in the client time zone.

See Also