📜  现在日期 js - Javascript 代码示例

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

代码示例4
function toTimestamp(strDate){
   var datum = Date.parse(strDate);
   return datum/1000;
}
alert(toTimestamp('02/13/2009 23:31:30'));