aa=year(Date())
if Month(Date())<10 Then aa=aa&right("0"&month(Date()),2)
Else aa=aa&Month(Date())
End IF
IF Day(Date())<10 Then aa=aa&right("0"&day(Date()),2)
Else aa=aa&Day(Date())
End IF
'加入小时
IF Hour(Now())<10 Then aa=aa&right("0"&Hour(Now()),2)
Else aa=aa&Hour(Now())
End IF
Response.Write aa
加入分钟和秒钟道理是一样的