npm install moment
var moment = require('moment'); moment().format();
Note: In 2.4.0, the globally exported moment object was deprecated. It will be removed in next major release.
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up