asp个数日期自动前面加0函数分享

 '取时间 2016-12-01/142346

function getDate()
    getDate=year(now)&"-"&Right("0"&month(now),2)&"-"&Right("0"&day(now),2)&"/"&Right("0"&hour(now),2)&Right("0"&minute(now),2)&Right("0"&second(now),2)
end Function