Convert normal date to unix timestamp

Math.floor(new Date('2012.08.10').getTime() / 1000)

Check the JavaScript Date documentation.

Leave a Comment