Convert normal date to unix timestamp October 22, 2022 by Tarik Math.floor(new Date('2012.08.10').getTime() / 1000) Check the JavaScript Date documentation.