How do I get the Date & Time (VBS)

前端 未结 7 2002
臣服心动
臣服心动 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:30

    To expound on Numenor's answer you can do something like, Format(Now(),"HH:mm:ss") using these custom date/time formating options


    For everyone who is tempted to downvote this answer please be aware that the question was originally tagged VB and vbscript hence my answer, the VB tag was edited out leaving only the vbscript tag. The OP accepted this answer which I take to mean that it gave him the information that he needed.

提交回复
热议问题