Published
Edited
Feb 10, 2019
48 stars
Insert cell
Insert cell
Insert cell
date.toLocaleString(undefined, {
hour: "numeric",
minute: "numeric",
second: "numeric"
})
Insert cell
Insert cell
date.toLocaleString(undefined, {
hour: "numeric",
minute: "numeric",
second: "numeric",
timeZoneName: "short",
timeZone: "UTC"
})
Insert cell
Insert cell
date.toLocaleString("fr-FR", {
hour: "numeric",
minute: "numeric",
second: "numeric",
timeZoneName: "short",
timeZone: "UTC"
})
Insert cell
Insert cell
date.toLocaleString("fr-FR", {
hour: "numeric",
minute: "numeric",
second: "numeric"
})
Insert cell
Insert cell
date.toLocaleString("fr-FR", {
hour: "numeric",
minute: "numeric",
second: "numeric",
timeZone: "Europe/Paris"
})
Insert cell
Insert cell
date.toLocaleString(undefined, {weekday: "long"})
Insert cell
date.toLocaleString(undefined, {weekday: "short"})
Insert cell
date.toLocaleString(undefined, {weekday: "narrow"})
Insert cell
Insert cell
date.toLocaleString(undefined, {month: "long"})
Insert cell
date.toLocaleString(undefined, {month: "short"})
Insert cell
date.toLocaleString(undefined, {month: "narrow"})
Insert cell
Insert cell
date.toLocaleString(undefined, {day: "numeric"})
Insert cell
date.toLocaleString(undefined, {day: "2-digit"})
Insert cell
Insert cell
date.toLocaleString(undefined, {
weekday: "short",
month: "short",
day: "numeric"
})
Insert cell
Insert cell
date.toLocaleString(undefined, {
weekday: "short",
month: "short",
})
Insert cell
date.toLocaleString(undefined, {
weekday: "short",
month: "short",
year: "numeric"
})
Insert cell
Insert cell
Insert cell
Insert cell
date.toLocaleString(locale, format)
Insert cell
Insert cell
date = new Date(2018, 11, 1, 9, 27, 9, 247)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more