function subdate(date,ys){ if(date!=""&&ys=="1"){ date = date.substring(2,4)+"-"+date.substring(4,6)+"-"+date.substring(6,8); } if(date!=""&&ys=="2"){ date = +date.substring(0,4)+"-"+date.substring(4,6)+"-"+date.substring(6,8); } return date; } function subdate(date,ys){ if(date!=""&&ys=="1"){ date = date.substring(2,4)+"-"+date.substring(4,6)+"-"+date.substring(6,8); } if(date!=""&&ys=="2"){ date = +date.substring(0,4)+"-"+date.substring(4,6)+"-"+date.substring(6,8); } return date; } function newimg1(date){ //date = date.substring(0,4)+","+date.substring(4,6)+","+date.substring(6,8); var nowyear = date.substring(0,4); var nowmouth = date.substring(4,6); var nowday = date.substring(6,8); var nowdate = new Date(nowyear,nowmouth,nowday).getTime(); var nowyear1 = getdate().substring(0,4); var nowmouth1 = getdate().substring(4,6); var nowday1 = getdate().substring(6,8); var nowdate1 = new Date(nowyear1,nowmouth1,nowday1).getTime(); var ts = (nowdate1 - nowdate)/3600000/24; if(ts<6 && ts>-1){ return ""; }else{ return ""; } } function getdate(){ var day=new Date(); var Year = 0; var Month = 0; var Day = 0; var CurrentDate = ""; Year = day.getFullYear(); Month = day.getMonth()+1+""; Day = day.getDate()+""; if(Day.length==1){ Day = "0"+Day; } if(Month.length==1){ Month = "0"+Month; } return Year+""+Month+""+Day; }

金沙网投平台-免费娱乐平台