js//初始话日期

function InitDate()
{
  var today = new Date();
  var strTime=today.getYear();
  if (today.getMonth()<9) strTime=strTime+'/0'+(today.getMonth()+1);else  strTime=strTime+'/'+(today.getMonth()+1);
  if (today.getDate()<10) strTime=strTime+'/0'+today.getDate();else  strTime=strTime+'/'+today.getDate();
   document.all("Date_S").value=strTime;
   document.all("Date_E").value=strTime;
}


initDate();

//初始话日期
function initDate()
{
 var d = new Date();
 var s = "";
 s = s + d.getYear() + "/";
 s = s + (d.getMonth() + 1) + "/";
 s = s +  d.getDate();
 document.all("P.Q_RQEND").value = s ;
 document.all("P.Q_RQ").value = addDays(s,-30);
}

posted @ 2007-09-07 11:39  Winner.Net(2007)  阅读(284)  评论(0编辑  收藏  举报