DateTimeFormat Enum
Lists the values used to specify the formatting applied to date-time values.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
#Declaration
#Members
Name | Description |
---|---|
Short
|
Displays a date using the short-date format specified in your computer’s regional settings. |
Long
|
Displays a date using the long-date format specified in your computer’s regional settings. |
Short
|
Displays a time using the short-time format specified in your computer’s regional settings. |
Long
|
Displays a time using the long-time format specified in your computer’s regional settings. |
General
|
Displays a date and time, using the general date-time settings determined by your computer’s regional settings. |
Month
|
Displays a date as a month name and day number, using your computer’s regional settings (e. |
Month
|
Displays a date as a month name and year number, using your computer’s regional settings (e. |
Quarter
|
Displays a date as a quarter value and year number using your computer’s regional settings (e. Note that you can apply formatting to the quarter’s value. To do this, set the Date q - Changes format to Roman numerals (e. qq - Changes format to Roman numerals with the Q prefix (e. Q - Changes format to Arabic numerals (e. QQ - Changes format to Arabic numerals with the Q prefix (e. |
Custom
|
The format string specified by the Date |
#Related API Members
The following properties accept/return DateTimeFormat values:
#Remarks
The values listed by the DateTimeFormat enumeration are used to set the DateTimeOptions.Format property.
#Example
The following example demonstrates how to modify the DateTimeOptions.Format property value in XAML.
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
<dxc:AxisX2D.Label>
<dxc:AxisLabel TextPattern="{}{A:MMMM d}"/>
</dxc:AxisX2D.Label>
</dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>