mongoDB客户端使用js将时间戳转成时间对象并输出到控制台

var time1 = new Date(1637129113943)

var time2 = new Date(1637129132073)

var time3 = newDate(1637129112824)

console.log("time1:"+time1+"time2:"+time2+"time3:"+time3);

你可能感兴趣的:(mongodb,mongodb)