Skip to content

Instantly share code, notes, and snippets.

@wozozo

wozozo/reiwa.js

Created Jun 25, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.