moment format datetime to timestamp code example
Example 1: moment get timestamp
moment().unix() // you will get a unix timestamp
moment().valueOf() // you will get a full timestamp
Example 2: moment get timestamp
var CurrentDate = moment().valueOf();