<@DAYS DATE=date DAYS=days [ENCODING=encoding] [FORMAT=format]>
Adds the days in the DAYS attribute to the date in the DATE attribute. Use a negative DAYS value to subtract days.
All formats assume the Gregorian calendar. All years must be greater than zero.
<@DAYS> handles ODBC, ISO, and some numeric formats.
If the date is entered incorrectly--wrong separators or wrong values for year, month, or day--the tag returns "Invalid date!".
The attributes, DATE and DAY are mandatory. If no attribute is found for ether the tag returns "No attribute!".
Note: When a two-digit year is
given, the following centuries are assumed:
Value |
Century |
For example, a two-digit year of 99 is evaluated as 1999, and a two-digit year of 00 is evaluated as 2000.
<@DAYS DATE=1998-02-20 DAYS=7>
This tag returns "1998-02-27", the new date, assuming the dateFormat is "%Y-%m-%d".
dateFormat,
timeFormat, timestampFormat
<@DATEDIFF>
Encoding Attribute
<@FORMAT>
Format Attribute
Copyright © 1999, Pervasive Software. All rights reserved.