Skip to content

Instantly share code, notes, and snippets.

@t32k t32k/getFormattedDate.js
Last active Nov 8, 2019

Embed
What would you like to do?
const getFormattedDate = date => {
return new Intl.DateTimeFormat("ja", {
year: "numeric",
month: "2-digit",
day: "2-digit",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
timeZone: "Asia/Tokyo"
}).format(date);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.