DateFormatElement class

DateFormatElement class

Represents a date format element.

Learn more

The DateFormatElement type exposes the following members:

Methods

Method Description
to_string Returns a str that represents the current DateFormatElement.

Properties

Property Description
format The format string.
single_format The single format string.

Fields

Field Description
DAY_OF_MONTH Gets the day of month element, represented by one or two digits.
DAY_OF_MONTH_TWO_DIGITS Gets the day of month element, represented by two digits.
MONTH Gets the month element, represented by one or two digits.
MONTH_TWO_DIGITS Gets the month element, represented by two digits.
MONTH_ABBREVIATED_NAME Gets the month element, represented by abbreviated name.
MONTH_FULL_NAME Gets the month element, represented by full name.
YEAR Gets the year element, represented by one, two, three, or four digits.
YEAR_TWO_DIGITS Gets the year element, represented by two digits.
YEAR_FOUR_DIGITS Gets the year element, represented by four digits.
DATE_SEPARATOR Gets the date separator element.

Guides

Task guides that use DateFormatElement:

See Also