获取当前日期方法一:
代码如下:
currentdate1=date()
msgbox currentdate1
获取当前日期方法二:
currentdate2=year(now)&-&month(now)&-&day(now)
msgbox currentdate2
获取当前时间:
currenttime=hour(now)&:&minute(now)&:&second(now)
m = 当前时间& currenttime
msgbox m