My year is an additional 543 years from the year by A.D.
I already set the locale property to my country(TH).
I see the dateFormat property config this but can't add 543 years.
I can set the initialDate property by DateTime(DateTime.now().year + 543) but it is not correct. February have 28 days and 29 days every 4 years.
For the example:
A.D. 2020 => 29 days
in TH we add 543: 2563 => 29 days
if I use DateTime(DateTime.now().year + 543), it will wrong:
A.D. 2020 => 29 days
TH 2563 => 28 days //2564 => 29 days
My project saves date time with A.D. and shows with year + 543.
How to add years or shows the custom year?
I need it.
My year is an additional 543 years from the year by A.D.
I already set the locale property to my country(TH).
I see the dateFormat property config this but can't add 543 years.
I can set the initialDate property by
DateTime(DateTime.now().year + 543)but it is not correct. February have 28 days and 29 days every 4 years.For the example:
A.D. 2020 => 29 days
in TH we add 543: 2563 => 29 days
if I use
DateTime(DateTime.now().year + 543), it will wrong:A.D. 2020 => 29 days
TH 2563 => 28 days //2564 => 29 days
My project saves date time with A.D. and shows with year + 543.
How to add years or shows the custom year?
I need it.