DateTimeMaskOptions.DateTimeKind Attached Property
In This Article
Gets or sets the time format: local time, Coordinated Universal Time (UTC), or neither.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
See GetDateTimeKind(DependencyObject) and SetDateTimeKind(DependencyObject, Nullable<DateTimeKind>).
#Returns
Type | Description |
---|---|
Nullable<Date |
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