Search

6/16/2012

Moment.js

Moment.js - A lightweight (4.3k) javascript date library for parsing, manipulating, and formatting dates.

moment().format('dddd, MMMM Do YYYY, h:mm:ss a');
moment().format('dddd [on the] wo [week of the year]');
moment().format("MMM Do 'YY");
moment().format(); // defaults to ISO-8601

沒有留言: