- Change of Gengo (Japanese Era Name) - 平成(Heisei) -> 令和(Reiwa) - From 2019/05: less than half a month left - Change of Consumption Tax Rate - 8% -> 10% and multiple tax rates (+ reduced tax rate) will be introduced - From 2019/10: still more than 5 months left
2019/04/30 -> 平成31年04月30日 - 2019/05/01 -> 令和01年05月01日 - We have only to care about the format of converted result (right-hand side) - That is because the original format (left-hand side) is stored in our DB as date type
平成31年04月30日 -> 2019/04/30 - 令和01年05月01日 -> 2019/05/01 - 平成31年05月01日 -> 2019/05/01 #<- should be convertible - 令和01年04月30日 -> 2019/04/30 #<- should be convertible - 令和元年05月01日 -> 2019/05/01 #<- should be convertible * “元年” means origin year. it’s used for year 1 of an era.
- 2. 令和{0,}1 #Kanji + full-width number - 3. 令和元 #Kanji + 元年(origin year) - 4. R{0,}1 #Capital R without dot - 5. R.{0, 1} #Captial R with dot - 6. r.{0, 1} #samll r with dot - 7. 2019 #half-width number - 8. 2019 #full-width number - 9. Others (1~8 + some unnecessary characters or spaces may be included) *Needless to say, “平成”(the current Gengo) must be covered
and how our team dealt with it - The current Japanese era “Heisei (平成)” will end soon - Look forward to the new Japanese era “Reiwa (令和)” - We’re hiring!!