date in unix format javascript code example
Example 1: javascript date convert to unix
new Date('2012.08.10').getTime() / 1000
Example 2: unix timestamp js
+ new Date()
new Date('2012.08.10').getTime() / 1000
+ new Date()