-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we add year value to show the year according to my country? #45
Comments
It will be better to add properties like: These will make this package can display data independently. |
@SittiphanSittisak I will change it to TH locale ONLY soon |
@SittiphanSittisak can you check the branch feature/BE? |
Sorry for replying late. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: