Skip to main content

TimeZoneHelper.FromOperationTime(DateTime, String) Method

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

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

public override DateTime FromOperationTime(
    DateTime dateTime,
    string tzId
)

Parameters

Name Type Description
dateTime DateTime

A DateTime value in the operational time zone.

tzId 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.

Remarks

The time zone of the scheduler storage is specified by the SchedulerStorageBase.TimeZoneId property.

See Also