Difference between revisions of "Documentation/BASIC Guide/Date"
From Apache OpenOffice Wiki
< Documentation | BASIC Guide
Line 8: | Line 8: | ||
− | Date and Time | + | =Date and Time Variables= |
− | + | ||
− | + | ||
− | + | ||
Date variables can contain date and time values. When saving date values, {{OOo}} Basic uses an internal format that permits comparisons and mathematical operations on date and time values. There is no type declaration symbol for date variables. The declaration can only be made using the supplement As Date. | Date variables can contain date and time values. When saving date values, {{OOo}} Basic uses an internal format that permits comparisons and mathematical operations on date and time values. There is no type declaration symbol for date variables. The declaration can only be made using the supplement As Date. | ||
− | |||
Example declaration of a date variable: | Example declaration of a date variable: | ||
− | + | Dim Variable As Date | |
− | Dim Variable As Date | + |
Revision as of 18:59, 25 September 2007
Date and Time Variables
Date variables can contain date and time values. When saving date values, Apache OpenOffice Basic uses an internal format that permits comparisons and mathematical operations on date and time values. There is no type declaration symbol for date variables. The declaration can only be made using the supplement As Date.
Example declaration of a date variable:
Dim Variable As Date