Moment.js
A lightweight javascript date library for parsing, manipulating, and formatting dates.
Get it
npm install momentProduction Version 1.1.22.6kb minified & gzippedDevelopment Version 1.1.218.2kb full source + comments
Use it
var now = moment(); console.log(now.format('dddd, MMMM Do YYYY, h:mm:ss a'));
var halloween = moment([2011, 9, 31]); \\ October 31st console.log(halloween.fromNow());
var now = moment().add('days', 9); console.log(now.format('dddd, MMMM Do YYYY'));
var now = moment(); moment.lang('fr'); console.log(now.format('LLLL'));