convert time to integer javascript code example Example: convert int to timestanp js Date.now() and new Date(1381216317325);