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
'Output: Myvar contains current date and time.