Intl.DateTimeFormat
Browser support
Full support
Browser support
Full support
Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
Input
da-DK
Alternativ use
Intl.DateTimeFormat can also be used from Date.prototype.toLocaleString()
new Date("2022-04-24T19:00")
.toLocaleString("da-DK")
24.4.2022, 19.00.00
Output
dateStyle
Browser support
Browser support
Available in Chrome from version 76 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 79 Firefox
Available in Opera from version 63 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 76 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 54 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 76 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.9.0 Node.js
{
dateStyle: "full"
}
søndag den 24. april 2022
{
dateStyle: "long"
}
24. april 2022
{
dateStyle: "medium"
}
24. apr. 2022
{
dateStyle: "short"
}
24.04.2022
timeStyle
Browser support
Browser support
Available in Chrome from version 76 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 79 Firefox
Available in Opera from version 63 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 76 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 54 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 76 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.9.0 Node.js
{
timeStyle: "full"
}
19.00.00 Koordineret universaltid
{
timeStyle: "long"
}
19.00.00 UTC
{
timeStyle: "medium"
}
19.00.00
{
timeStyle: "short"
}
19.00
year
{
year: "numeric"
}
2022
{
year: "2-digit"
}
22
month
{
month: "numeric"
}
4
{
month: "2-digit"
}
04
{
month: "long"
}
april
{
month: "short"
}
apr.
{
month: "narrow"
}
A
day
{
day: "numeric"
}
24.
{
day: "2-digit"
}
24.
hour
{
hour: "numeric"
}
19
{
hour: "2-digit"
}
19
minute
{
minute: "numeric"
}
0
{
minute: "2-digit"
}
0
second
{
second: "numeric"
}
0
{
second: "2-digit"
}
0
weekday
{
weekday: "long"
}
søndag
{
weekday: "short"
}
søn.
{
weekday: "narrow"
}
S
era
{
era: "long"
}
24.4.2022 efter Kristus
{
era: "short"
}
24.4.2022 e.Kr.
{
era: "narrow"
}
24.4.2022 eKr
hour12
{
hour12: true
}
07.00.00 PM
{
hour12: false
}
19.00.00
hourCycle
Browser support
Browser support
Available in Chrome from version 73 Chrome
Available in Edge from version 18 Edge
Available in Firefox from version 58 Firefox
Available in Opera from version 60 Opera
Available in Safari from version 13 Safari
Available in Chrome Android from version 73 Chrome Android
Available in Firefox for Android from version 58 Firefox for Android
Available in Opera Android from version 52 Opera Android
Available in Safari on iOS from version 13 Safari on iOS
Available in Samsung Internet from version 11.0 Samsung Internet
Available in WebView Android from version 73 WebView Android
Available in WebView on iOS from version 13 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.0.0 Node.js
{
hourCycle: "h11"
}
07.00.00 PM
{
hourCycle: "h12"
}
07.00.00 PM
{
hourCycle: "h23"
}
19.00.00
{
hourCycle: "h24"
}
19.00.00
dayPeriod
Browser support
Partial support
Browser support
Partial support
Available in Chrome from version 92 Chrome
Available in Edge from version 92 Edge
Available in Firefox from version 90 Firefox
Available in Opera from version 78 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 92 Chrome Android
Available in Firefox for Android from version 90 Firefox for Android
Not available in Opera Android Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 16.0 Samsung Internet
Available in WebView Android from version 92 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.12 Deno
Not available in Node.js Node.js
{
dayPeriod: "long"
}
om aftenen
{
dayPeriod: "short"
}
om aftenen
{
dayPeriod: "narrow"
}
om aftenen
fractionalSecondDigits
Browser support
Browser support
Available in Chrome from version 84 Chrome
Available in Edge from version 84 Edge
Available in Firefox from version 84 Firefox
Available in Opera from version 70 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 84 Chrome Android
Available in Firefox for Android from version 84 Firefox for Android
Available in Opera Android from version 60 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 14.0 Samsung Internet
Available in WebView Android from version 84 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 14.6.0 Node.js
{
fractionalSecondDigits: 1
}
0,0
{
fractionalSecondDigits: 2
}
0,00
{
fractionalSecondDigits: 3
}
0,000
calendar
Browser support
Browser support
Available in Chrome from version 80 Chrome
Available in Edge from version 80 Edge
Available in Firefox from version 76 Firefox
Available in Opera from version 67 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 80 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 57 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 13.0 Samsung Internet
Available in WebView Android from version 80 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 14.0.0 Node.js
{
calendar: "buddhist"
}
24.4.2565
{
calendar: "chinese"
}
2022-03-24
{
calendar: "coptic"
}
16.8.1738
{
calendar: "ethiopia"
}
24.4.2022
{
calendar: "ethiopic"
}
16.8.2014
{
calendar: "gregory"
}
24.4.2022
{
calendar: "hebrew"
}
23.8.5782
{
calendar: "indian"
}
4.2.1944
{
calendar: "islamic"
}
23.9.1443
{
calendar: "iso8601"
}
24.4.2022
{
calendar: "japanese"
}
24/4/4
{
calendar: "persian"
}
4.2.1401
{
calendar: "roc"
}
24.4.111
numberingSystem
Browser support
Browser support
Available in Chrome from version 80 Chrome
Available in Edge from version 80 Edge
Available in Firefox from version 76 Firefox
Available in Opera from version 67 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 80 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 57 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 13.0 Samsung Internet
Available in WebView Android from version 80 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 14.0.0 Node.js
{
numberingSystem: "arab"
}
٢٤.٤.٢٠٢٢
{
numberingSystem: "arabext"
}
۲۴.۴.۲۰۲۲
{
numberingSystem: "bali"
}
᭒᭔.᭔.᭒᭐᭒᭒
{
numberingSystem: "beng"
}
২৪.৪.২০২২
{
numberingSystem: "deva"
}
२४.४.२०२२
{
numberingSystem: "fullwide"
}
24.4.2022
{
numberingSystem: "gujr"
}
૨૪.૪.૨૦૨૨
{
numberingSystem: "guru"
}
੨੪.੪.੨੦੨੨
{
numberingSystem: "hanidec"
}
二四.四.二〇二二
{
numberingSystem: "khmr"
}
២៤.៤.២០២២
{
numberingSystem: "knda"
}
೨೪.೪.೨೦೨೨
{
numberingSystem: "laoo"
}
໒໔.໔.໒໐໒໒
{
numberingSystem: "latn"
}
24.4.2022
{
numberingSystem: "limb"
}
᥈᥊.᥊.᥈᥆᥈᥈
{
numberingSystem: "mlym"
}
൨൪.൪.൨൦൨൨
{
numberingSystem: "mong"
}
᠒᠔.᠔.᠒᠐᠒᠒
{
numberingSystem: "mymr"
}
၂၄.၄.၂၀၂၂
{
numberingSystem: "orya"
}
୨୪.୪.୨୦୨୨
{
numberingSystem: "tamldec"
}
௨௪.௪.௨௦௨௨
{
numberingSystem: "telu"
}
౨౪.౪.౨౦౨౨
{
numberingSystem: "thai"
}
๒๔.๔.๒๐๒๒
{
numberingSystem: "tibt"
}
༢༤.༤.༢༠༢༢
timeZoneName
Browser support
Browser support
Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
timeZoneName: "long"
}
24.4.2022, Koordineret universaltid
{
timeZoneName: "short"
}
24.4.2022, UTC
{
timeZoneName: "shortOffset"
}
24.4.2022, GMT
{
timeZoneName: "longOffset"
}
24.4.2022, GMT
{
timeZoneName: "shortGeneric"
}
24.4.2022, GMT
{
timeZoneName: "longGeneric"
}
24.4.2022, GMT
formatMatcher
{
formatMatcher: "best fit"
}
24.4.2022
{
formatMatcher: "basic"
}
24.4.2022
localeMatcher
{
localeMatcher: "best fit"
}
24.4.2022
{
localeMatcher: "lookup"
}
24.4.2022