Skip to main content
A newer version of this page is available. .

TimeZoneHelper.FromClientTime(DateTime, String, String) Method

Converts a time interval from one specified time zone to another.

Namespace: DevExpress.XtraScheduler

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

Declaration

public DateTime FromClientTime(
    DateTime dateTime,
    string targetTimeZoneId,
    string clientTimeZoneId
)

Parameters

Name Type Description
dateTime DateTime

A DateTime value in the specified 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.

clientTimeZoneId String

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

Returns

Type Description
DateTime

A DateTime value in the specified target time zone.

See Also