convert date to moment code example
Example 1: convert moment date to utc format moment
moment(timestamp).toISOString(true)
Example 2: moment to date
moment().toDate();
Example 3: timestamp convert moment vue
var day = moment.unix(1318781876); //seconds
var day = moment(1318781876406); //milliseconds
// and then:
console.log(day.format('dddd MMMM Do YYYY, h:mm:ss a'));
// "Sunday October 16th 2011, 9:17:56 am"
Example 4: moment to javascript date
let now = moment()
let now = now.toDate()