Now Function

Description

Returns a Variant (Date) specifying the current date and time according your computer's system date and time.

Syntax

Now

See Also

Date function, Date statement, Day function, Hour function, Minute function, Month function, Second function, Time function, Time statement, Weekday function, Year function.

Example

This example uses the Now function to return the current system date and time.

Dim Today
Today = Now                            ' Assign current system date and time.
Example (Microsoft Access)

You can use the Now function in a calculated control to return the current system date and time. For example, you can create a text box and set its ControlSource property to the following expression.

=Now()