📅  最后修改于: 2022-03-11 15:04:23.253000             🧑  作者: Mango
代码示例4
function toTimestamp(strDate){
var datum = Date.parse(strDate);
return datum/1000;
}
alert(toTimestamp('02/13/2009 23:31:30'));