Home > Web Front-end > JS Tutorial > body text

vbs code to get current time and date

高洛峰
Release: 2017-01-16 10:12:32
Original
2077 people have browsed it

Get the current date method one:

Currentdate1=date()
msgbox Currentdate1
Copy after login

Get the current date method two:

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

Get the current time:

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template