generate 10 digit timestamp in javascript code example Example: convert int to timestanp js Date.now() and new Date(1381216317325);