search

goog.i18n.DateTimeFormat

Provided By

Construct a DateTimeFormat object based on current locale.

new DateTimeFormat( pattern, opt_dateTimeSymbols )

Parameters
pattern(string|number)

pattern specification or pattern type.

opt_dateTimeSymbolsObject=

Optional symbols to use for this instance rather than the global symbols. You can use some of the predefined SHORT / MEDIUM / LONG / FULL patterns, or the common patterns defined in goog.i18n.DateTimePatterns. Examples:

let fmt = new goog.i18n.DateTimeFormat(
goog.i18n.DateTimeFormat.Format.FULL_DATE);
let fmt = new goog.i18n.DateTimeFormat(
goog.i18n.DateTimePatterns.MONTH_DAY_YEAR_MEDIUM);

goog.i18n.DateTimeFormat.Format goog.i18n.DateTimePatterns

Instance Methods

Instance Properties

Static Functions

Enumerations