Home  >  Article  >  Web Front-end  >  vbs code to get current time and date

vbs code to get current time and date

高洛峰
高洛峰Original
2017-01-16 10:12:322017browse

Get the current date method one:

Currentdate1=date()
msgbox Currentdate1

Get the current date method two:

Currentdate2=year(Now)&"-"&Month(Now)&"-"&day(Now)
msgbox Currentdate2

Get the current time:

CurrentTime=Hour(Now)&":"&Minute(Now)&":"&Second(Now)
m = "当前时间"& CurrentTime 
msgbox m

More vbs code related to get the current time and date Please pay attention to the PHP Chinese website for articles!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn