3 ms·
I've used the library in a real project, and I'm on the mailing list. FYI, there doesn't seem to be much development activity going on, nor is it so perfect and
by midnightmonster 17y ago
I've used the library in a real project, and I'm on the mailing list. FYI, there doesn't seem to be much development activity going on, nor is it so perfect and complete that further development is unneeded. That's not to discourage anyone from using it, since it's the only JS lib I know that fills the same niche, just to let you know you may need to get your hands dirty. (I've got a patch waiting for integration but not enough attention available to test it for use cases that are not mine and really push it through. If you do have the interest and bandwidth to polish whatever improvements you make, you could probably help quite a bit.)
- mcxx 17y agoWhat parts did you miss?
- fnid 17y agoIt would be cool if it understood "Christmas" or other holidays. Also, things like, "two weeks after next wednesday at 1pm"
- midnightmonster 17y agoMy patch (which can be found discussed in the mailing list) provides a callback hook to modify the final result given the parsed details. I use it to modify assumptions: e.g., if you just type a year, for the final output, the library assumes the rest of the date should be jan 1, but if this field is the end of a date range, it should probably be dec 31 since "burglaries from 2001 to 2002" means the burglaries in 2001 and in 2002. I think it's an important function, and the original author agreed, but neither of us has had the time to test and time everything for all the relevant codepaths to make it into the library. Other posters have had other complaints about missing functionality--some struck me as reasonable, some not so much--but I haven't kept track.
- TravisLS 17y agoThere's another date formatting library if you're using Prototype, that I've used for a few things (although I have to say, I like the OP better). It was kind of hard to track down and doesn't seem to have any continuing support, but is used as part of this nice date picker: http://home.jongsma.org/software/js/datepicker http://home.jongsma.org/software/js/datepicker This is the .js file: http://home.jongsma.org/js/lib/prototype-date-extensions.js http://home.jongsma.org/js/lib/prototype-date-extensions.js
- cookiecaper 17y agoI had the same experience, and we ended up having to patch the core library to get our desired specific result too. It's pretty cool, but it hasn't been updated in a long time and it could really use some fleshing out.
- rcoder 17y agoSince it sounds like a number of people are maintaining local patches to this library, might it make sense to fork it on GitHub to try to get some additional contributors onboard?
- sh1mmer 17y agoThat sounds like a job for a Github fork.
- hboon 17y agoSimon Willison used to have a demo and code for a date (no time) parser which was pretty cool a few years back. No idea if further work has been done on it. http://simonwillison.net/code/js/date-parser http://simonwillison.net/code/js/date-parser