Difference between revisions of "Documentation/BASIC Guide/Date"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
|lang=block
 
|lang=block
 
}}
 
}}
 
+
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 <tt>As Date</tt>.
  
 
Example declaration of a date variable:
 
Example declaration of a date variable:
  
 +
<source lang="oobas">
 
  Dim Variable As Date
 
  Dim Variable As Date
 +
</source>
  
 +
 +
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Date}}
 
{{PDL1}}
 
{{PDL1}}

Latest revision as of 08:52, 24 October 2008


Date variables can contain date and time values. When saving date values, OpenOffice.org 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).
Personal tools