Re:A cool way to use natural language in JavaScript
by userbinator on Saturday May 14, 2016 @12:20PM
(#11696762)
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.
[ Parent
| on HN ]
Re:A cool way to use natural language in JavaScript
by themartorana on Saturday May 14, 2016 @01:40PM
(#11697209)
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.
Re:A cool way to use natural language in JavaScript
by gengkev on Sunday May 15, 2016 @02:08PM
(#11701988)
I write dates that way too, but because mm/dd/yyy is ambiguous in an international context. Sorting correctly is great as well!
Re:A cool way to use natural language in JavaScript
by hueving on Saturday May 14, 2016 @12:52PM
(#11696955)
April 2nd.
Re:A cool way to use natural language in JavaScript
by usmannk on Saturday May 14, 2016 @01:28PM
(#11697141)
That's the wrong date though. The person's name is April.