CitectVBA Programming Reference > CitectVBA Function Reference > Date and Time Functions > Now


Determines the current date and time according to the setting of the computer's system date and time using the Gregorian Calendar. Unlike other functions, Now does not require trailing parentheses.



Return Value

The Now function returns a Variant data type containing a date and time value that is stored internally as a double data type.

The number represents a date and time from January 1, 100 through December 31, 9999. Numbers to the left of the decimal point represent the date and numbers to the right represent the time.

Related Functions

Date | Time | Timer


Dim vntToday
vntToday = Now
' stores current system date and time.