Now, Now$ Function

Purpose

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

Syntax

d = Now

$ = Now$[(d)]

d: Date expression

Description

Now returns a Date specifying the current date and time according your computer's system date and time.

Now$ returns the current date and time as a string formatted according Mode Date setting (dd.mm.yyyy HH:mm:ss). Now$(date) returns the specified Date as a string in the same format.

Example

Dim MyDate As Date

MyDate = Now   ' MyDate contains the current system date/time.

Dim s$ = Now$

Print "Now = "; MyDate

Print "Now$ = "; s$

Remarks

Now$[()] is identical to DateTime$[()]

See Also

DateTime$, Date, Date$, Time, Time$

{Created by Sjouke Hamstra; Last updated: 20/10/2014 by James Gaite}