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

TimeZoneHelper.ToOperationTime(DateTime, String) Method

Converts a DateTime value from the specified time zone to the time zone of the scheduler storage (operational time zone).

Namespace: DevExpress.XtraScheduler

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

NuGet Packages: DevExpress.Scheduler.Core, DevExpress.WindowsDesktop.Scheduler.Core

Declaration

public override DateTime ToOperationTime(
    DateTime dateTime,
    string tzId
)

Parameters

Name Type Description
dateTime DateTime

A DateTime value in the specified time zone.

tzId String

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

Returns

Type Description
DateTime

A DateTime value in the operational time zone.

Remarks

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

See Also