Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert Gregorian year to the Japanese calendar year ? #3553

Closed
shikelong opened this issue Nov 1, 2016 · 1 comment
Closed

How to convert Gregorian year to the Japanese calendar year ? #3553

shikelong opened this issue Nov 1, 2016 · 1 comment

Comments

@shikelong
Copy link

such as

2016 -> 平成27年

@maggiepint
Copy link
Member

If you are talking about an alternate calendar system, it's not something that moment supports. There may be a plugin out there, but if there is I'm not aware of it. If you just want Japanese characters for gregorian calendar dates, then you could set the locale to Japanese using moment.locale('ja').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants