DateFormatElement

DateFormatElement class

Represents a date format element.

public class DateFormatElement

Properties

Name Description
static DateSeparator { get; } Gets the date separator element.
static DayOfMonth { get; } Gets the day of month element, represented by one or two digits.
static DayOfMonthTwoDigits { get; } Gets the day of month element, represented by two digits.
static Month { get; } Gets the month element, represented by one or two digits.
static MonthAbbreviatedName { get; } Gets the month element, represented by abbreviated name.
static MonthFullName { get; } Gets the month element, represented by full name.
static MonthTwoDigits { get; } Gets the month element, represented by two digits.
static Year { get; } Gets the year element, represented by one, two, three, or four digits.
static YearFourDigits { get; } Gets the year element, represented by four digits.
static YearTwoDigits { get; } Gets the year element, represented by two digits.
Format { get; } Gets the format string.
SingleFormat { get; } Gets the single format string.

Methods

Name Description
override ToString() Returns a String that represents the current DateFormatElement.

Remarks

Learn more

See Also