Skip to main content

DataSource.DateTimeSavingMode Property

Gets or sets the conversion type for storing the appointment dates. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public DateTimeSavingMode DateTimeSavingMode { get; set; }

Property Value

Type Description
DateTimeSavingMode

A DevExpress.XtraScheduler.DateTimeSavingMode enumeration value specifying the storage mode for date-time values. The default is Appointment.

Available values:

Name Description
Appointment

Do not convert Start and End appointment values before storing them in the data source.

Storage

Convert Start and End appointment values to the time zone of the SchedulerControl before storing them in the data source.

Utc

Convert Start and End appointment values to UTC before storing them in the data source.

Remarks

When the user creates an appointment, the appointment’s TimeZoneId value corresponds to the SchedulerControl.ActualTimeZone property value. Use the DateTimeSavingMode property to specify how the date-time values are converted when storing appointment data in the data source.

Set the DateTimeSavingMode to Appointment to store date-time values in the time zone specified in appointments.

Set the DateTimeSavingMode to Storage to store date-time values in the time zone specified by the TimeZone property.

Set the DateTimeSavingMode to Utc to store date-time values in the UTC time zone.

Refer to the following topic for more information: Time Zones.

See Also