Getting the date right in Javascript in your language of choice

August 20th, 2020

The Internationalization API provides language number formatting, string comparison, and date/time formatting in Javascript. It’s a global object.

Intl.DateTimeFormat('en-GB',
{
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
weekday: 'long',
era: 'long',
year: 'numeric' ,
month: 'long',
timeZoneName: 'long',
hour12: false
}).format()

What is the time today?

en
Monday, March 17, 2025 Anno Domini at 23:35:24 Coordinated Universal Time

de
Montag, 17. März 2025 n. Chr. um 23:35:24 Koordinierte Weltzeit

fr
lundi 17 mars 2025 après Jésus-Christ à 23:35:24 temps universel coordonné

es
lunes, 17 de marzo de 2025 después de Cristo, 23:35:24 (tiempo universal coordinado)

it
lunedì 17 marzo 2025 dopo Cristo alle ore 23:35:24 Tempo coordinato universale

sv
måndag 17 mars 2025 efter Kristus kl. 23:35:24 koordinerad universell tid

da
mandag 17. marts 2025 efter Kristus kl. 23.35.24 Koordineret universaltid

fi
maanantaina 17. maaliskuuta 2025 jälkeen Kristuksen syntymän klo 23.35.24 UTC-yleisaika

pl
poniedziałek, 17 marca 2025 naszej ery 23:35:24 uniwersalny czas koordynowany

ru
понедельник, 17 марта 2025 г. от Рождества Христова в 23:35:24 Всемирное координированное время

nl
maandag 17 maart 2025 na Christus om 23:35:24 gecoördineerde wereldtijd

ja
西暦2025年3月17日月曜日 23時35分24秒 協定世界時

th
วันจันทร์ที่ 17 มีนาคม พุทธศักราช 2568 เวลา 23 นาฬิกา 35 นาที 24 วินาที เวลาสากลเชิงพิกัด

pt
segunda-feira, 17 de março de 2025 depois de Cristo às 23:35:24 Horário Universal Coordenado

zh
公元2025年3月17日星期一 协调世界时 23:35:24

Leave a Reply