Now Function

 

Returns the current date and time according to the setting of your computer's system date and time.

Syntax

Now

Remarks

The following example uses the Now function to return the current date and time:

Dim MyVar
MyVar = Now ' MyVar contains the current date and time. 

Requirements

Version 1

See Also

Date Function
Day Function
Hour Function
Minute Function (VBScript)
Month Function
Second Function
Time Function
Weekday Function
Year Function