Customize

Convert Christian Calendar to Japanese

Summary

Converts a string or date field into a Japanese calendar and sets it to another field.

How to use

To set the converted era, the number of calendar years in the field, create that field in the application and select that field with “Set eraser” and “Set number of calendar years”.

If you wish to put the converted era and the number of calendar years in a field etc. as one character string like “Heisei 30 years” instead of registering it in separate fields, do as follows.

  1. Do not set “Set era name” and “Set number of calendar years” and leave it out.
  2. Set [Set value in field] (../set_field_value) “and set its” value “using calculation function as follows.

` = $ 1.era & $ 1.year & "Year" `

  • For part of $ 1, please specify the number of the action that set “convert the calendar year to Japanese calendar”. For example, if the action number is 3, it is $ 3.
  • $ 1.era represents the era part such as “Heisei”, and $ 1.year represents the year part.

Parameters to set

Specify the “Convert From Date”, “Set Gengo to” and “Set Japanese calendar years to”.

Source Date

Select the field with the date recorded in the year.

You can choose from the following field types:

  • String (one line)
  • Date
  • Date and time
  • Created at
  • Modified

If you choose a single-line string field, the value must be set in the correct date format.

The name of the era is set to

Select the field for which you want to set the era name. (optional)

Only strings (one line) can be selected.

If omitted, the era is not set in the field. It is possible to reference from other actions even if omitted.

Japanese year set to

Select the field for which you want to set Japanese year numbers. (optional)

You can select a string (single line) or a numeric field.

The first year of the era name is “1” instead of “1”.

If omitted, the number of calendar years is not set in the field. It is possible to reference from other actions even if omitted.

Limitations

Corresponding Era Range

To determine which era supports era era era era, see the user’s browser (*).

(*) It depends on the browser from which the user accesses the customized kintone app, not the browser used to create customizations in Customine.

  • IE11 … After Meiji(A.D. 1873)
  • Chrome … After Taika(A.D. 645)
  • FireFox … After Taika(A.D. 645)
  • Safari … After Taika(A.D. 645)

Response to New Era

Support for new era names starting from 2019 is supported by the user’s browser (*).

(*) It depends on the browser from which the user accesses the customized kintone app, not the browser used to create customizations in Customine.

At the time of the first release of Customine (March 2018), no browsers are supported yet. When the browser is supported, the new era will be supported when the user updates the browser.