获取当前日期方法一:
currentdate1=date()
msgbox currentdate1
获取当前日期方法二:
currentdate2=year(now)&"-"&month(now)&"-"&day(now)
msgbox currentdate2
获取当前时间:
currenttime=hour(now)&":"&minute(now)&":"&second(now)
m = "当前时间"& currenttime
msgbox m
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
-
-
-
用vbs实现文本循环读取
因为测试中需要读取一批url数据进行浏览,其实使用qtp本身的table能实现多种读取方式,但是因为需要tabel是使用excel保存的,在没有...
[阅读全文]
-
-
-
-
-
网友评论