Skip to main content

Now

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

Synopsis

Now

Arguments

none

Description

The Now function returns the current date and time in a format such as the following:

mm/dd/yyyy 00:00:00PM

The exact display format depends on your system configuration. Leading zeros are displayed. The year is displayed as four digits.

To return just the current date, use the Date function. To return just the current time, use the Time function.

Examples

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

Dim MyVar
MyVar = Now
Println MyVar

See Also

FeedbackOpens in a new tab