momentjs date parse code example
Example 1: timestamp convert moment vue
var day = moment.unix(1318781876);
var day = moment(1318781876406);
console.log(day.format('dddd MMMM Do YYYY, h:mm:ss a'));
Example 2: moment to javascript date
let now = moment()
let now = now.toDate()
Example 3: moment.set
moment().set('year', 2013);
moment().set('month', 3);
moment().set('date', 1);
moment().set('hour', 13);
moment().set('minute', 20);
moment().set('second', 30);
moment().set('millisecond', 123);
moment().set({'year': 2013, 'month': 3});