typescript get unix timestamp from date code example
Example 1: javasctipt unix timestamp from date
Math.round(new Date().getTime() / 1000).toString()
Example 2: timestamp to unix time react
var unixTimestamp = moment('2012.08.10', 'YYYY.MM.DD').unix();