YearName

Returns the Japanese year name of a date, in the specified format.

Format 

YearName ( date ; format )

Parameters 

date - any calendar date

format - a number (0, 1, or 2) that describes the display format

Data type returned 

text

Originated in version 

6.0 or earlier

Description 

If the value for format is blank or other than 0, 1, or 2, then 0 is used.

0 - Japanese text for Emperor Meiji in long format8 (Meiji 8), Japanese text for Emperor Taisho in long format8 (Taisho 8), Japanese text for Emperor Showa in long format8 (Showa 8), Japanese text for Emperor Heisei in long format8 (Heisei 8), Japanese text for Emperor Reiwa in long format8 (Reiwa 8), Japanese text for Seireki in long format (Seireki xxxx [before 1868.9.8])

1 - (Japanese text for Emperor Meiji in abbreviated format)8 (Mei 8), (Japanese text for Emperor Taisho in abbreviated format)8 (Tai 8), (Japanese text for Emperor Showa in abbreviated format)8 (Sho 8), (Japanese text for Emperor Heisei in abbreviated format)8 (Hei 8), (Japanese text for Emperor Reiwa in abbreviated format)8 (Rei 8), (Japanese text for Seireki in abbreviated format)xxxx (Sei xxxx [before 1868.9.8])

2 - M8, T8, S8, H8, R8, xxxx CE (before 1868.9.8)

Name of emperor in 0 = Long, 1 = Abbreviated, 2 = 2-byte roman. Seireki is returned when date is before listed emperors.

Notes 

  • YearName returns the numeric portion of an emperor year as Japanese kanji pronounced gen for the first year of a new era when the format parameter is set to 1. For example:

    YearName ( DateField ; 1 ) returns Japanese kanji pronounced rei enclosed in parentheses and kanji pronounced gen when DateField contains 5/1/2019.

Example 1 

YearName ( DateField ; 0 ) returns Japanese text for the year name occurring on July 15, 2008 when DateField contains 7/15/2008.