Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 485 Bytes
title version signature
moment(); // From 2.14.0 onward, also supported moment([]); moment({});

To get the current date and time, just call moment() with no parameters.

var now = moment();

This is essentially the same as calling moment(new Date()).

Note: From version 2.14.0, moment([]) and moment({}) also return now. They used to default to start-of-today before 2.14.0, but that was arbitrary so it was changed.