Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 450 Bytes
title
Browserify
npm install moment
var moment = require('moment');
moment().format();

Note: There is a bug that prevents moment.locale from being loaded.

var moment = require('moment');
moment.locale('cs');
console.log(moment.locale()); // en

Use the workaround below

var moment = require('moment');
require('moment/locale/cs');
console.log(moment.locale()); // cs