Back to Devexpress

DataSource.DateTimeSavingMode Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-datasource-7b3c7758.md

latest2.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

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

Property Value

TypeDescription
DateTimeSavingMode

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

|

Available values:

NameDescription
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

DataSource Class

DataSource Members

DevExpress.Xpf.Scheduling Namespace