TimeZoneHelper.FromClientTime(DateTime, String) Method

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

Namespace: DevExpress.XtraScheduler

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

Declaration

public DateTime FromClientTime(
    DateTime dateTime,
    string targetTimeZoneId
)

Parameters

Name Type Description
dateTime DateTime

A DateTime value in the client time zone.

targetTimeZoneId String

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

Returns

Type Description
DateTime

A DateTime value in the specified time zone.

See Also