獲取當(dāng)前日期方法一:
代碼如下:
Currentdate1=date()
msgbox Currentdate1
獲取當(dāng)前日期方法二:
代碼如下:
Currentdate2=year(Now)&"-"&Month(Now)&"-"&day(Now)
msgbox Currentdate2
獲取當(dāng)前時間:
代碼如下:
CurrentTime=Hour(Now)&":"&Minute(Now)&":"&Second(Now)
m = "當(dāng)前時間"& CurrentTime
msgbox m
更多信息請查看IT技術(shù)專欄