chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Option for changing Date-parsing to GB Date-Format

Open meister03 opened this issue 4 years ago • 2 comments

Currently when parsing Dates, the library uses the US-Date Format. Is there any option to change the parsing to the GB-Date Format?

E.g: 01.11.21 -> Understood as 11. Jan 2021 | wanted: 1. Nov 2021

meister03 avatar Nov 03 '21 12:11 meister03

Sorry for my slow reply. Have you already tried chrono.en.GB.parse() instead of chrono.parse()?

wanasit avatar Dec 28 '21 03:12 wanasit

No problem, will test it out in a hour. The issue would be that it would not work on other languages anymore, which also uses the gb date format, but the content is in another language.

meister03 avatar Dec 28 '21 18:12 meister03