MomentJS - Now


Advertisements

This will display the current date.

Example

var now = moment();

To get the current date, we have to use the following code −

now._d

Output

Now
momentjs_parsing_date_and_time.htm
Advertisements