function CurentTime(){ var now = new Date(); var year = now.getFullYear(); //年 var month = now.getMonth() + 1; //月 var day = now.getDate(); //日 var hh = now.getHours(); //时 var mm = now.getMinutes(); //分 var ss = now.getSeconds(); //秒 var clock = yea…
//获取服务器时间 var getServerDate = function () { var xmlHttpRequest = null, serverDate = new Date(); if (window.ActiveXObject) { xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) {…
function getCurrentDate(){ var myDate = new Date(); var month = myDate.getMonth()+1; var day = myDate.getDate(); var split = "-" if(month >= 1 &&month <= 9){ month = "0" + month; } if(day >=0 && day <=9){ da…
function GetDateStr(AddDayCount) { var dd = new Date(); dd.setDate(dd.getDate()+AddDayCount); var year = dd.getFullYear(); var month = dd.getMonth()+1+""; if(month.length<2)month="0"+month; var day = dd.getDate()+""; if(da…
<script type="text/javascript" language="javascript"> //获取系统时间 var LSTR_ndate=new Date(); var LSTR_Year=LSTR_ndate.getYear(); var LSTR_Month=LSTR_ndate.getMonth(); var LSTR_Date=LSTR_ndate.getDate(); var LSTR_Hours=LSTR_ndate.get…