Back to Devexpress

DateTimeMaskOptions.DateTimeKind Attached Property

wpf-devexpress-dot-xpf-dot-editors-dot-datetimemaskoptions-74d8ab9c.md

latest1.8 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetDateTimeKind(DependencyObject) and SetDateTimeKind(DependencyObject, Nullable<DateTimeKind>).

Returns

TypeDescription
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.

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

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

See Also

Mask Type: Date-Time

DateTimeMaskOptions Class

DateTimeMaskOptions Members

DevExpress.Xpf.Editors Namespace