.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

FieldOptions.UseCurrentCultureDateTimeFormat Property

Gets or sets whether the current culture's short date and time display settings should be used to format DateTime value for display.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v20.1.Core.dll

Declaration

[DefaultValue(false)]
public bool UseCurrentCultureDateTimeFormat { get; set; }
<DefaultValue(False)>
Public Property UseCurrentCultureDateTimeFormat As Boolean

Property Value

Type Description
Boolean

true, to use the current culture settings; false to use a predefined fixed format.

Property Paths

You can access this nested property as listed below:

Show 14 property paths
Library Object Type Path to UseCurrentCultureDateTimeFormat
WinForms Controls SnapControl
.Options.Fields.UseCurrentCultureDateTimeFormat
SnapControl
.Options.Fields.UseCurrentCultureDateTimeFormat
SnapControl
.Options.Fields.UseCurrentCultureDateTimeFormat
SnapControlOptions
.Fields.UseCurrentCultureDateTimeFormat
SnapControlOptions
.Fields.UseCurrentCultureDateTimeFormat
RichEditControl
.Options.Fields.UseCurrentCultureDateTimeFormat
RichEditControlOptions
.Fields.UseCurrentCultureDateTimeFormat
WPF Controls RichEditControl
.Options.Fields.UseCurrentCultureDateTimeFormat
RichEditControlOptions
.Fields.UseCurrentCultureDateTimeFormat
Office File API SnapDocumentServer
.Options.Fields.UseCurrentCultureDateTimeFormat
IRichEditDocumentServer
.Options.Fields.UseCurrentCultureDateTimeFormat
RichEditControlOptionsBase
.Fields.UseCurrentCultureDateTimeFormat
RichEditDocumentServer
.Options.Fields.UseCurrentCultureDateTimeFormat
Reporting SyntaxEditor
.Options.Fields.UseCurrentCultureDateTimeFormat

Remarks

The UseCurrentCultureDateTimeFormat option is accessible using RichEditControl.Options.Fields.UseCurrentCultureDateTimeFormat or RichEditDocumentServer.Options.Fields.UseCurrentCultureDateTimeFormat notation.

The UseCurrentCultureDateTimeFormat option enables you to change the default formatting used to display DateTime values in document fields. If this option is set to true, the current culture's Date and Time settings will be used. If the option is false (the default value), DateTime values are displayed using the "M/d/yyyy" formatting for the date and the "h:mm tt" formatting for time values.

The display format of the following fields is dependent on the UseCurrentCultureDateTimeFormat option:

See Also