How can I convert normal date 2012.08.10 to unix timestamp in javascript?
2012.08.10
Fiddle: http://jsfiddle.net/J2pWj/ I\'ve se
convert timestamp to unix timestamp.
const date = 1513787412; const unixDate = new Date(date * 1000);// Dec 20 2020 (object)
to get the timeStamp after conversion const TimeStamp = new Date(date*1000).getTime(); //1513787412000
const TimeStamp = new Date(date*1000).getTime(); //1513787412000