basic.date
Returns system date in internal format.
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.
Example
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.
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
