Skip to main content

DateTimeFormat Enum

Lists the values used to specify the formatting applied to date-time values.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v14.2.dll

#Declaration

public enum DateTimeFormat

#Members

Name Description
ShortDate

The date obtained from your computer's regional settings, is displayed with the short-date format.

LongDate

The date, obtained from your computer's regional settings, is displayed with the long-date format.

ShortTime

The time obtained from your computer's regional settings, is displayed with the short-time format.

LongTime

The time, obtained from your computer's regional settings, is displayed with the long-time format.

General

Date is displayed based on your computer's regional settings.

MonthAndDay

The date obtained from your computer's regional settings, is displayed as a month name and day number (e.g., February 11).

MonthAndYear

The date obtained from your computer's regional settings, is displayed as a month name and year number (e.g., February, 2006).

QuarterAndYear

The date obtained from your computer's regional settings is displayed as a quarter value and year number (e.g., Q2 2006).

To change the quarter's format, set the DateTimeOptions.Format property to Custom, and the DateTimeOptions.FormatString property to one of the following values:

q - Changes format to Roman numerals (e.g., IV);

qq - Changes format to Roman numerals with the Q prefix (e.g., QIV);

Q - Changes format to Arabic numerals (e.g., 4);

QQ - Changes format to Arabic numerals with the Q prefix (e.g., Q4).

Custom

Date and time are displayed, using the format specified via the DateTimeOptions.FormatString property.

#Passed To

You can pass DateTimeFormat values to the DateTimeOptions.Format property.

#Remarks

The values listed by the DateTimeFormat enumeration are used to set the DateTimeOptions.Format property.

See Also