Index

Constructor methods

Properties

Methods

Constructor methods

constructor(formatTemplate: string): DateTimeFormatter

Parameters

  • formatTemplate: string

Returns

DateTimeFormatter

constructor(formatTemplate: string, languages: IIterable): DateTimeFormatter

Parameters

  • formatTemplate: string
  • languages: IIterable

Returns

DateTimeFormatter

constructor(formatTemplate: string, languages: IIterable, geographicRegion: string, calendar: string, clock: string): DateTimeFormatter

Parameters

  • formatTemplate: string
  • languages: IIterable
  • geographicRegion: string
  • calendar: string
  • clock: string

Returns

DateTimeFormatter

constructor(yearFormat: YearFormat, monthFormat: MonthFormat, dayFormat: DayFormat, dayOfWeekFormat: DayOfWeekFormat): DateTimeFormatter

Parameters

Returns

DateTimeFormatter

constructor(hourFormat: HourFormat, minuteFormat: MinuteFormat, secondFormat: SecondFormat): DateTimeFormatter

Parameters

Returns

DateTimeFormatter

constructor(yearFormat: YearFormat, monthFormat: MonthFormat, dayFormat: DayFormat, dayOfWeekFormat: DayOfWeekFormat, hourFormat: HourFormat, minuteFormat: MinuteFormat, secondFormat: SecondFormat, languages: IIterable): DateTimeFormatter

Parameters

Returns

DateTimeFormatter

constructor(yearFormat: YearFormat, monthFormat: MonthFormat, dayFormat: DayFormat, dayOfWeekFormat: DayOfWeekFormat, hourFormat: HourFormat, minuteFormat: MinuteFormat, secondFormat: SecondFormat, languages: IIterable, geographicRegion: string, calendar: string, clock: string): DateTimeFormatter

Parameters

Returns

DateTimeFormatter

Properties

public calendar: string

public clock: string

public geographicRegion: string

public includeDay: DayFormat

public includeDayOfWeek: DayOfWeekFormat

public includeHour: HourFormat

public includeMinute: MinuteFormat

public includeMonth: MonthFormat

public includeSecond: SecondFormat

public includeYear: YearFormat

public languages: IVectorView

public static longDate: DateTimeFormatter

public static longTime: DateTimeFormatter

public numeralSystem: string

public patterns: IVectorView

public resolvedGeographicRegion: string

public resolvedLanguage: string

public static shortDate: DateTimeFormatter

public static shortTime: DateTimeFormatter

public template: string

Methods

public format(value: Date): string

Parameters

  • value: Date

Returns

string