get the most recent timestamp javascript code example
Example 1: how to get timestamp in javascript of a date object
new Date().getTime()
new Date().valueOf()
Example 2: how to get seconds in timstamps js
var seconds = new Date().getTime() / 1000;