Skip to main content

TimeZoneHelper.ToClientTime(DateTime, String, String) Method

Converts a DateTime value from one time zone to another.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

public DateTime ToClientTime(
    DateTime sourceDateTime,
    string sourceTimeZoneId,
    string clientTimeZoneId
)

Parameters

Name Type Description
sourceDateTime DateTime

A DateTime value in the source time zone.

sourceTimeZoneId String

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

clientTimeZoneId String

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

Returns

Type Description
DateTime

A DateTime value in the destination time zone.

See Also