Options
All
  • Public
  • Public/Protected
  • All
Menu

Pre-defined format specifiers for use with formatDate().

Hierarchy

  • DateFormat

Index

Properties

Static DATE_LONG

DATE_LONG: string

A localized long representation of a date (e.g. "September 4 1986" for en-US locale).

Static DATE_SHORT

DATE_SHORT: string

A localized representation of a date (e.g. "09/04/1986" for en-US locale).

Static DATE_TIME_LONG

DATE_TIME_LONG: string

A localized long representation of date and time (e.g. "September 4 1986 8:30 PM" for en-US locale).

Static DATE_TIME_SHORT

DATE_TIME_SHORT: string

A localized representation of date and time (e.g. "Sep 4 1986 8:30 PM" for en-US locale).

Static DEFAULT

DEFAULT: string

The default representation for date values (equivalent to DATE_TIME_SHORT).

Static DEFAULT_PARSING_FORMATS

DEFAULT_PARSING_FORMATS: string[]

The default set of formats used for parsing date values.

Static FULL

FULL: string

A localized full representation of date and time, including day of week (e.g. "Thursday, September 4 1986 8:30 PM" for en-US locale).

Static ISO_8601

ISO_8601: string

The date and time in ISO-8601 format (e.g. "2014-09-08T08:02:17-05:00"). Invariant.

Static ROUND_TRIP

ROUND_TRIP: string

An invariant representation of a date. Guarantees that the date can be parsed back into the same date, regardless of locale. Equivalent to ISO-8601.

Static TIME_LONG

TIME_LONG: string

A localized representation of the time including seconds (e.g. "8:30:25 PM" for en-US locale).

Static TIME_SHORT

TIME_SHORT: string

A localized short representation of the time (e.g. "8:30 PM" for en-US locale).