How do I get the Date & Time (VBS)

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

    Show time in form 24 hours

    Right("0" & hour(now),2) & ":" & Right("0" & minute(now),2)   = 01:35
    Right("0" & hour(now),2)                                      = 01
    Right("0" & minute(now),2)                                    = 35
    

提交回复
热议问题