matthewmueller / date

Date() for humans
http://matthewmueller.github.io/date/
1.48k stars 89 forks source link

Support for non-relative date-time strings #57

Open drzax opened 10 years ago

drzax commented 10 years ago

It would be useful if this library could also parse non-relative strings. I was rather perplexed to find:

> d("September 11, 2014");
> Fri Sep 12 2014 11:45:01 GMT+1000 (EST)

I know the plain old Date constructor will handle that, but it'd be nice not to have to worry about whether a date is relative or not and still have the other natural-language advantages this library has.

matthewmueller commented 10 years ago

+1, this library needs a bit of love

psema4 commented 10 years ago

Needed a really quick fix for this (for a production app that uses agenda), here's a quick and dirty gist that may (or may not) be useful

FindBoat commented 9 years ago

I'm very surprised that this lib doesn't support non-relative date string. This should be very useful! +1