DateTimeFormat

external class DateTimeFormat(locales: String = definedExternally, options: DateTimeFormatOptions = definedExternally)(source)

Constructors

Link copied to clipboard
constructor(locales: ReadonlyArray<String>, options: DateTimeFormatOptions = definedExternally)
constructor(locales: String = definedExternally, options: DateTimeFormatOptions = definedExternally)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun format(date: Date = definedExternally): String
fun format(date: JsLong): String
Link copied to clipboard
fun formatRange(startDate: BigInt, endDate: BigInt): String
fun formatRange(startDate: Date, endDate: Date): String
fun formatRange(startDate: JsLong, endDate: JsLong): String
Link copied to clipboard