Difference between revisions of "Documentation/BASIC Guide/Date"
From Apache OpenOffice Wiki
< Documentation | BASIC Guide
m |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{DISPLAYTITLE:Date and Time Variables}} | ||
{{Documentation/BASICGuideTOC/v2 | {{Documentation/BASICGuideTOC/v2 | ||
|ShowPrevNext=block | |ShowPrevNext=block | ||
Line 5: | Line 6: | ||
|NextPage=Documentation/BASIC Guide/Arrays | |NextPage=Documentation/BASIC Guide/Arrays | ||
|lang=block | |lang=block | ||
− | }} | + | }} |
− | + | ||
− | + | Date variables can contain date and time values. When saving date values, {{AOo}} 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 <tt>As Date</tt>. | |
− | |||
− | |||
− | Date variables can contain date and time values. When saving date values, {{ | ||
Example declaration of a date variable: | Example declaration of a date variable: | ||
+ | <syntaxhighlight lang="oobas"> | ||
Dim Variable As Date | Dim Variable As Date | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | {{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Date}} | ||
{{PDL1}} | {{PDL1}} |
Latest revision as of 11:03, 30 January 2021
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
Content on this page is licensed under the Public Documentation License (PDL). |