📌  相关文章
📜  在 JavaScript 代码示例中获取当前日期和时间

📅  最后修改于: 2022-03-11 15:04:09.805000             🧑  作者: Mango

代码示例6
var currentdate = new Date(); 
var datetime = "Last Sync: " + currentdate.getDate() + "/"
                + (currentdate.getMonth()+1)  + "/" 
                + currentdate.getFullYear() + " @ "  
                + currentdate.getHours() + ":"  
                + currentdate.getMinutes() + ":" 
                + currentdate.getSeconds();