Winner.Net@2007

专注与.Net技术

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 on 2007-09-07 11:39 Winner.Net(2007) 阅读(103) 评论(0)  编辑 收藏


标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
 
另存  打印
最新IT新闻: