Skip to content
Types
import type { DateFormat, TimeFormat, DateTimeFormatOptions, DateProperties } from "@arcgis/core/intl/date.js";

Type definitions

DateFormat

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"short-date" | "short-date-short-time" | "short-date-short-time-24" | "short-date-long-time" | "short-date-long-time-24" | "short-date-le" | "short-date-le-short-time" | "short-date-le-short-time-24" | "short-date-le-long-time" | "short-date-le-long-time-24" | "long-month-day-year" | "long-month-day-year-short-time" | "long-month-day-year-short-time-24" | "long-month-day-year-long-time" | "long-month-day-year-long-time-24" | "day-short-month-year" | "day-short-month-year-short-time" | "day-short-month-year-short-time-24" | "day-short-month-year-long-time" | "day-short-month-year-long-time-24" | "long-date" | "long-date-short-time" | "long-date-short-time-24" | "long-date-long-time" | "long-date-long-time-24" | "long-month-year" | "short-month-year" | "year"

TimeFormat

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"short-time" | "long-time"

DateTimeFormatOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Supertypes
Intl.DateTimeFormatOptions

timeZone

Property
Type
TimeZone | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

DateProperties

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
number | string | Date