A newer version of this page is available. Switch to the current version.

DataSource.DateTimeSavingMode Property

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

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll


public DateTimeSavingMode DateTimeSavingMode { get; set; }
Public Property DateTimeSavingMode As DateTimeSavingMode

Property Value

Type Description

A DateTimeSavingMode enumeration value specifying the appointment storing mode.


Use the DateTimeSavingMode property to relate the appointment start and end data with the same time zone.


All-Day appointments (the AppointmentItem.AllDay property is True) has the DateTime.Kind value set to DateTimeKind.Unspecified for their AppointmentItem.Start and AppointmentItem.End values, even if the DateTimeSavingMode property is DateTimeSavingMode.Utc. This behavior is correct because all-day appointment occurs on a certain day disregarding local - UTC time conversions.

Set the DateTimeSavingMode property to the DateTimeSavingMode.Storage to store appointments in the Scheduler time zone (specified by the SchedulerControl.TimeZone property). Setting the property to the DateTimeSavingMode.Appointment value saves appointments to the data source with the time zone, defined by the AppointmentItem.TimeZoneId property.


Set the DateTimeSavingMode to the DateTimeSavingMode.Utc value in your applications to make the DateTime data consistent throughout different databases used in your applications.

See Also