DateTimeFormatOptions

@JSType
trait DateTimeFormatOptions extends Object
Companion:
object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

@ExposedJSMember @JSOptional
var day: UndefOr[String]

The representation of the day. Possible values are "numeric", "2-digit".

The representation of the day. Possible values are "numeric", "2-digit".

@ExposedJSMember @JSOptional
var era: UndefOr[String]

The representation of the era. Possible values are "narrow", "short", "long".

The representation of the era. Possible values are "narrow", "short", "long".

@ExposedJSMember @JSOptional
var formatMatcher: UndefOr[String]

The format matching algorithm to use. Possible values are "basic" and "best fit"; the default is "best fit". See the following paragraphs for information about the use of this property.

The format matching algorithm to use. Possible values are "basic" and "best fit"; the default is "best fit". See the following paragraphs for information about the use of this property.

@ExposedJSMember @JSOptional
var hour: UndefOr[String]

The representation of the hour. Possible values are "numeric", "2-digit".

The representation of the hour. Possible values are "numeric", "2-digit".

@ExposedJSMember @JSOptional
var hour12: UndefOr[Boolean]

Whether to use 12-hour time (as opposed to 24-hour time). Possible values are true and false; the default is locale dependent.

Whether to use 12-hour time (as opposed to 24-hour time). Possible values are true and false; the default is locale dependent.

@ExposedJSMember @JSOptional
var localeMatcher: UndefOr[String]

The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". For information about this option, see the Intl page.

The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". For information about this option, see the Intl page.

@ExposedJSMember @JSOptional
var minute: UndefOr[String]

The representation of the minute. Possible values are "numeric", "2-digit".

The representation of the minute. Possible values are "numeric", "2-digit".

@ExposedJSMember @JSOptional
var month: UndefOr[String]

The representation of the month. Possible values are "numeric", "2-digit", "narrow", "short", "long".

The representation of the month. Possible values are "numeric", "2-digit", "narrow", "short", "long".

@ExposedJSMember @JSOptional
var second: UndefOr[String]

The representation of the second. Possible values are "numeric", "2-digit".

The representation of the second. Possible values are "numeric", "2-digit".

@ExposedJSMember @JSOptional
var timeZone: UndefOr[String]

The time zone to use. The only value implementations must recognize is "UTC"; the default is the runtime's default time zone. Implementations may also recognize the time zone names of the IANA time zone database, such as "Asia/Shanghai", "Asia/Kolkata", "America/New_York".

The time zone to use. The only value implementations must recognize is "UTC"; the default is the runtime's default time zone. Implementations may also recognize the time zone names of the IANA time zone database, such as "Asia/Shanghai", "Asia/Kolkata", "America/New_York".

@ExposedJSMember @JSOptional
var timeZoneName: UndefOr[String]

The representation of the time zone name. Possible values are "short", "long".

The representation of the time zone name. Possible values are "short", "long".

@ExposedJSMember @JSOptional
var weekday: UndefOr[String]

The representation of the weekday. Possible values are "narrow", "short", "long".

The representation of the weekday. Possible values are "narrow", "short", "long".

@ExposedJSMember @JSOptional
var year: UndefOr[String]

The representation of the year. Possible values are "numeric", "2-digit".

The representation of the year. Possible values are "numeric", "2-digit".