Inquiry on Converting DatePicker Displayed Dates from AD to ROC

0 Answers 39 Views
DatePicker
Carol
Top achievements
Rank 1
Carol asked on 05 Feb 2024, 05:54 AM

I am currently using the DatePicker component, and I have already localized it to zh-Hant using i18n.

However, I have encountered a specific issue and would appreciate your professional assistance.

The current display of dates in the DatePicker shows the AD (Anno Domini) year, but I wish to convert it to the ROC year format for Taiwan . According to the ROC calendar system, this involves subtracting 1911 from the AD year to obtain the corresponding ROC year.

As an example, for the AD year "2023," I would like the displayed format to be "112."

Could you please advise me on how to achieve this specific date format adjustment while using the DatePicker component?

I look forward to your guidance and suggestions. Thank you!

No answers yet. Maybe you can help?

Tags
DatePicker
Asked by
Carol
Top achievements
Rank 1
Share this question
or