I use [momentjs](http://momentjs.com) for my projects and it works great.