What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-27 15:53:02
js create timestamp with 10 digits
// Divide the 13-digit timestamp by 1000 and then round to get a 10-digit timestamp number parseInt(+new Date()/1000); // Convert the 13-digit timestamp to a string and intercept the first 10 digits to get a 10-digit timestamp string (+new Date()).toS... Add solution