function getcalculation(dt,coun){
try
{
//alert("1::"+dt)
var serdate=document.getElementById("serdate").value;
diff =new Date();
var stdate=dt;
var callcreatedate1=new Date(stdate);
var callclosedate1=new Date(serdate);
var t1=callcreatedate1.getTime();
var t2=callclosedate1.getTime();
}
因为callclosedate1
我得到日期值Mon Oct 15 2012 17:45:20 GMT+0530 (India Standard Time)
但callcreatedate1
显示无效日期错误,应该怎么做