Okay, i have to admit this is the first time i’ve seen a date library. I did do a bit of digging and found out how behind I am on js date libraries. But out of all the ones i found, none of them matched DateJs. The site has a kickass design with a little red Ninja logo holding a sword. I’m not too sure why the Ninja was chosen to represent this library, but what the heck, it looks ass kicking.
The whole idea of DateJS is to translate common date strings into a usable and accurate timestamp. The result is similar to php’s strtotime function following GNU >> Date Input Format syntax but in real time as you type.
A couple tries from Rey Bango at Ajaxian.com


And of course, a couple tries from me trying to break it


After a few tests, it seems like it caps at the number 99. You can do +99 days/years/ect., but as soon as you hit 100, it refuses to calculate. I guess that’s just a small limitation purposely added, shouldn’t be too hard to remove.
One interest thing that I have been wondering about is the string “The Day After Tomorrow”, equally as “+2 days”. Somehow this string has never been taken in consideration (doesn’t work on strtotime in php either :\ )

Thanks for the post and feedback regarding the library.
The 99 vs 100 problem is a bug. We’re expecting to fix right away.
Same thing with the “The Day After Tomorrow” phrase. Actually, the phrase “Day After Tomorrow” works. We just need to add some ignore words, like “the”, and everything should be fine. Currently the parser *only* supports the hundreds of options as outlined in the Test Suite. See http://www.datejs.com/test/
Anywho, thanks again.