Search w3schools.com:

SHARE THIS PAGE

VBScript Now Function


VBScript Reference Complete VBScript Reference

The Now function returns the current date and time according to the setting of your computer's system date and time.

Syntax

Now

Example

Example (IE Only)

<script type="text/vbscript">

document.write("The current system date and time is: ")
document.write(Now)

</script>

The output of the code above will be:


Try it yourself »


VBScript Reference Complete VBScript Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]