function FormatDate(strTime){
strTime = strTime.replace("-","/");
strTime = strTime.replace("-","/");
var date = new Date(strTime);
return date.getFullYear()+"-"+FormatNum(date.getMonth()+1)+"-"+FormatNum(date.getDate());
}
function FormatTime(strTime){
strTime = strTime.replace("-","/");
strTime = strTime.replace("-","/");
var date = new Date(strTime);
var day=null;
switch (date.getDay())
{case 0:day="天";break;case 1:day="一";break;case 2:day="二";break;case 3: day="三";break;case 4:day="四";break;case 5: day="五";break;case 6:day="六";break;}
return "星期"+day+" "+FormatNum(date.getHours())+":"+FormatNum(date.getMinutes())+":"+FormatNum(date.getSeconds());
}
function FormatNum(strTime) {
if(strTime<10){return "0"+strTime}else{return strTime}
}