Convert the year, month, day, hour, minute, and second into a timestamp (compatible with Apple phones)

var time = "2023-09-09 06:30:58";
var changetime = new Date(time.replace(/-/g,"/"));
var newtime = changetime.getTime();
console.log(changetime,newtime);

Guess you like

Origin blog.csdn.net/BubbleABC/article/details/129499747