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