The easiest way I can think of is this...
dim dtNow as datetime
dtnow=now()
console.writeline(dtnow.tostring("yyyy-MM-dd HH:mm"))
The datetime variable stores only the datetime information. Use the .tostring to format the info for output.
HTH
David
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.