MomentJS - Date



We can use new Date() JavaScript object inside a moment.

Syntax

moment(Date);

Example

var day = moment(new Date(2018,10,08));

Output

Date
momentjs_parsing_date_and_time.htm
Advertisements