japanese-date-converter Demo (use as jQuery)

Input "H30/12/31", and then it will be converted into "2018/12/31".

This shows that MTSHR styles(明治・大正・昭和・平成・令和) can be converted into Western years style.

Input "430/12/31", and then it will be converted into "2018/12/31".

This shows that MTSHR styles(明治・大正・昭和・平成・令和) can be inputted as number style, example, M is 1, T is 2, S is 3, H is 4, and R is 5.

Input "4301231", and then it will be converted into "2018/12/31".

This shows that you don't need to input separator literal.

Input "430.12.31", and then it will be converted into "2018/12/31".

This shows that you can use any separator literal, not only with "/" and ".", but also with any literal

Input "2019/12/31", and then it will be converted into "R1/12/31".

This shows that you can convert into any expression how you'd like to show. supported styles are below.

years
style example date converted example
ggg 2019/04/30 平成
gg 2019/04/30
g 2019/04/30 H
yyyy 2019/04/30 2019
yy 2019/04/30 19
ee 1990/04/30 02
e 1990/04/30 2
months
style example date converted example
mmmmm 2019/04/30 A
mmmm 2019/04/30 April
mmm 2019/04/30 Apr
MM 2019/04/30 04
M 2019/04/30 4
days
style example date converted example
dd 2019/04/02 02
d 2019/04/02 2