dateparse icon indicating copy to clipboard operation
dateparse copied to clipboard

Support eurodate format (dd-mmm-yy with a digit month)

Open dferstay opened this issue 4 years ago • 2 comments

We have support for dates of the form dd-mmm-yy where mmm is an alphanumeric literal; for example:

"15-Jan-2017"

However, there is a European date format that is similar where mmm is a digit; for example:

"15-01-2017"

The above fails to parse with:

Could not find format for "28-02-02"

dferstay avatar Nov 10 '21 01:11 dferstay

What about teh sillyeh peoplez that put the month first? Its unambiguous if its the 13th day of the month, but otherwise what?

twitchyliquid64 avatar Nov 17 '21 05:11 twitchyliquid64

What about teh sillyeh peoplez that put the month first? Its unambiguous if its the 13th day of the month, but otherwise what?

I'm thinking that this is the same as dd/mm/yyyy vs mm/dd/yyyy, which is discussed near the very top of the README.md

MM/DD/YYYY VS DD/MM/YYYY Right now this uses mm/dd/yyyy WHEN ambiguous if this is not desired behavior, use ParseStrict which will fail on ambiguous date strings.

dferstay avatar Nov 17 '21 21:11 dferstay