Skip to content

Instantly share code, notes, and snippets.

@wozozo
Created June 25, 2020 08:37
Show Gist options
  • Save wozozo/359876e3ae596d9ed2d7ff92dc36b746 to your computer and use it in GitHub Desktop.
Save wozozo/359876e3ae596d9ed2d7ff92dc36b746 to your computer and use it in GitHub Desktop.
new Intl.DateTimeFormat("ja-JP-u-ca-japanese", {dateFormat: "full", year: "2-digit", month: "short", day: "2-digit"}).format(new Date())
> "令和02年6月25日"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment