ehedaya/theSloth — pull request #1 by switz (2012-11-03 02:55:16+00:00)
Title: Better date parsing

I haven't tested this as I don't have an API, but I don't see a reason why it won't work. Please test it out on your own before deploying. It should work well.

This will work with any of these strings plus more:

December 1st, 1995
12/1/95
95/1/12
1995-12-1
Dec 1 1995
12.1.95

etc.

I removed a ton of extraneous whitespace as well, just to clean things up a bit. Append ?w=1 to the url to see the commit much cleaner without any whitespace.