get the amount time in seconds from now to specific date code example Example: how to get seconds in timstamps js var seconds = new Date().getTime() / 1000;