Hacker News new | ask | show | jobs
by userbinator 3695 days ago
No 4th or February in the string either... yet another example of how unambiguous date parsing in natural languages is very, very difficult. Also an example of why ISO-8601 is awesome.
3 comments

Everyone always looks at me funny when I write my dates as `yyyy-mm-dd` - until, that is, I explain that it sorts alphabetically perfectly. That's the moment I can convert people to ISO-8601 converts.
I write dates that way too, but because mm/dd/yyy is ambiguous in an international context. Sorting correctly is great as well!
April 2nd.
That's the wrong date though. The person's name is April.
Yes, but you can still see how the model (mistakenly) arrives at this date
April = 4

2nd = 2