JavaScript date to unixTime code example
Example 1: javascript date convert to unix
new Date('2012.08.10').getTime() / 1000
Example 2: timestamp to unix time react
var unixTimestamp = moment('2012.08.10', 'YYYY.MM.DD').unix();
new Date('2012.08.10').getTime() / 1000
var unixTimestamp = moment('2012.08.10', 'YYYY.MM.DD').unix();