Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






Date statement

Sets the system date.

Syntax

Date[$] = dateExpr

Elements

dateExpr

Any expression whose value is a valid date/time value: either a String in a valid date/time format, or else a Variant containing either a date/time value or a string value in date/time format.

If dateExpr is a string in which the date part contains only numbers and valid date separators, the operating system's international Short Date format determines the order in which the numbers are interpreted as month, day, and year values. The date part of the string must have one of the following forms:

mm-dd-yy or dd-mm-yy
mm-dd-yyyy or dd-mm-yyyy
mm/dd/yy or dd/mm/yy
mm/dd/yyyy or dd/mm/yyyy

Usage

If you specify a 2-digit year designation (yy) in Notes or Domino, LotusScript interprets 50 through 99 as the years 1950 through 1999 and 00 through 49 as the years 2000 through 2049. For example, 88 and 1988 are equivalent year designations and 12 and 2012 are equivalent year designations.

If you specify a 2-digit year designation in SmartSuite, LotusScript interprets the years differently. For information on how each SmartSuite product interprets 2-digit year designations, see the online Help entry entitled Year 2000. This entry appears on the Help menu of each SmartSuite product.

This statement is not valid on UNIX or Macintosh OS X operating systems, for which you need to have root user privileges to change the system date.

See examples

Examples: Date statement
Related topics
LotusScript Language Reference: A through D
CDat function
Date function
DateNumber function
DateValue function
Format function
Time statement
UNIX platform differences in LotusScript
OS/400 platform differences in LotusScript




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009