Skip to content

How can we add year value to show the year according to my country? #45

@SittiphanSittisak

Description

@SittiphanSittisak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions