在转换回长整数后的以下日期转换中日期表示 10 月而不是 9 月
var date = 2013-09-23 18:31
startdate = getTimeStamp(date); //1382533260000
现在
t=1382533260000
rt = new Date(t)
//Wed Oct 23 2013 18:31:00 GMT+0530 (India Standard Time)
function getTimeStamp(strDate) {
var a1=strDate.split(" ");
var d1=a1[0].split("-");
var t1=a1[1].split(":");
var dtObj = new Date(d1[0],d1[1],d1[2],t1[0],t1[1]);
return dtObj.getTime();
}