Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DateTimeFormatInfo

Provides culture-specific information about the format of date and time values.

Full information about the culture and the application of overrides will be made available through this class at a later point.

See: https://msdn.microsoft.com/library/system.globalization.datetimeformatinfo.aspx

Hierarchy

  • DateTimeFormatInfo

Implements

Index

Constructors

constructor

Properties

AMDesignator

AMDesignator: string

Gets or sets the string designator for hours that are "ante meridiem" (before noon).

AbbreviatedDayNames

AbbreviatedDayNames: string[]

Gets or sets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week.

AbbreviatedMonthNames

AbbreviatedMonthNames: string[]

Gets or sets a one-dimensional string array that contains the culture-specific abbreviated names of the months.

DateSeparator

DateSeparator: string

Gets or sets the string that separates the components of a date, that is, the year, month, and day.

DayNames

DayNames: string[]

Gets or sets a one-dimensional string array that contains the culture-specific full names of the days of the week.

MonthNames

MonthNames: string[]

Gets or sets a one-dimensional array of type String containing the culture-specific full names of the months.

PMDesignator

PMDesignator: string

Gets or sets the string designator for hours that are "post meridiem" (after noon).

TimeSeparator

TimeSeparator: string

Gets or sets the string that separates the components of time, that is, the hour, minutes, and seconds.

Private formatter_

formatter_: CustomFormatter

Private isWritable_

isWritable_: boolean

Private locales_

locales_: string | string[]

Static FormatterConstructor

FormatterConstructor: object

Gets or sets a constructor function to be used for creating culture-variant formatting instances.

Type declaration

Static InvariantInfo

InvariantInfo: DateTimeFormatInfo

Gets a read-only instance that is culture-independent (invariant).

Methods

getFormatter

Private resolveFormatInfo_

  • resolveFormatInfo_(locales: string | string[]): void

Private setInvariantFormatInfo_

  • setInvariantFormatInfo_(): void

Generated using TypeDoc