<script language="javascript"> var biryear = 2015; var birmonth = 12; var birday = 11; var year = new Date(); var getyear = year.getYear(); TMonth = new Array('Jan','Feb','Mar','Apr','May','June','July','Aug','Sep','Oct','Nov','Dec'); nowM…
代码: //判断是否超期(有效期开始超过一年后算已超期) function IsEffect(effectDate) { var val = ""; var currentDate = new Date(); var year = currentDate.getFullYear() - 1;//当前年-1 var month = currentDate.getMonth()+1;//月份是从0索引的,所以要+1 var day = currentDate.getDate();//获取当…
<script type="text/javascript"> var orign_time = 1496706400; var leftTime = Date.parse(new Date())/1000;//转化成秒 var maxTime = orign_time-leftTime; function CountDownTime() { if (maxTime >=0) { var days = parseInt(maxTime/60/60/ 24, 10);…
js生成当前时间 var today=new Date(); function itArray(){ this.length=itArray.arguments.length for(var i=0;i<this.length;i++) this[i+1]=itArray.arguments[i]} var d=new itArray("星期日","星期一","星期二","星期三","星期四",&qu…
js获取当前时间 //获取当前时间,格式YYYY-MM-DD function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var year = date.getFullYear(); var month = date.getMonth() + 1; var strDate = date.getDate(); if (month >= 1 && month <= 9) {…