TimeZoneHelper.ToAppointmentTime(DateTime, String) Method

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

Namespace: DevExpress.XtraScheduler

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

Declaration

public DateTime ToAppointmentTime(
    DateTime dateTime,
    string appointmentTimeZoneId
)
Public Function ToAppointmentTime(
    dateTime As Date,
    appointmentTimeZoneId As String
) As Date

Parameters

Name Type Description
dateTime DateTime

A DateTime value in the operational time zone.

appointmentTimeZoneId String

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

Returns

Type Description
DateTime

A DateTime value in the appointment time zone.

Remarks

The operational time zone (time zone of the scheduler storage) is specified by the SchedulerStorageBase.TimeZoneId property. The appointment time zone is specified using the Appointment.TimeZoneId property.

See Also