|Command||basic.date Function/BASIC Program
Applicable release versions: AP, R83
|Category||BASIC Program (486)|
|Description||returns the current system date in internal format, as an integer number representing the number of days which have elapsed since December 31, 1967 (day 0 on the Pick calendar).
The parentheses following the function are required, and must not contain arguments. Without the parentheses, "date" is assumed to be a variable.
number.days = date() - invoice.date This calculates the number of days elapsed between the value of invoice.date and the current system date. weeks.old = (date() - invoice.date) / 7 This calculates the number of weeks old.