How do I get the Date & Time (VBS)

前端 未结 7 2000
臣服心动
臣服心动 2020-12-24 09:11

How do I get the current date and time using VBS (for Windows. I\'m not looking for VBScript for ASP/ASPX or webpages).

7条回答
  •  佛祖请我去吃肉
    2020-12-24 09:33

    For VBScript use FormatDateTime, which has 5 numerical arguments to give you one of 5 predefined formats. Its not great.

      FormatDateTime(now, 4)
      08:12
    

提交回复
热议问题