Moment.js

Great JavaScript library for dealing with dates, for use in the browser and in Node. If you're doing anything beyond trivial with dates in JavaScript, this could save you a few headaches (it did for me today).

View on momentjs.com