日付や時間が知りたい場面って結構あります
WScript.Echo Date & vbcrlf & Time # 2015/01/02 # 01:02:34 Year( Date ) # 2015 Month( Date ) # 1 Day( Date ) # 2 Hour( Time ) # 1 Minute( Time ) # 2 Second( Time ) # 34 Right( "0" & Year( Date ) , 4 ) # 2015 Right( "0" & Year( Date ) , 2 ) # 15 Right( "0" & Month( Date ) , 2 ) # 01 Right( "0" & Day( Date ) , 2 ) # 02 Right( "0" & Hour( Time ) , 2 ) # 01 Right( "0" & Minute( Time ) , 2 ) # 02 Right( "0" & Second( Time ) , 2 ) # 34 Right( "0" & Year( Date ) , 4 ) & _ Right( "0" & Month( Date ) , 2 ) & _ Right( "0" & Day( Date ) , 2 ) & _ "_" & _ Right( "0" & Hour( Time ) , 2 ) & _ Right( "0" & Minute( Time ) , 2 ) & _ Right( "0" & Second( Time ) , 2 ) # 20150102_010234