Skip to main content
All docs
V24.1

DateTimeMaskOptions.DateTimeKind Attached Property

Gets or sets the time format: local time, Coordinated Universal Time (UTC), or neither.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

Returns

Type Description
Nullable<DateTimeKind>

The time kind.

Remarks

The DateTimeMaskOptions.DateTimeKind attached property allows you to explicitly set the DateTime.Kind property (UTC, Local time, or neither) of a DateTime value the editor’s EditValue property returns.

<dxe:TextEdit MaskType="DateTime" Mask="d" dxe:DateTimeMaskOptions.DateTimeKind="Utc"/>

<dxe:DateEdit dxe:DateTimeMaskOptions.DateTimeKind="Local"/>
See Also