📌  相关文章
📜  如何立即获取日期时间 javascript - Javascript 代码示例

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

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