Moment.js

A lightweight javascript date library for parsing, manipulating, and formatting dates.

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'));