[TOC] [Prev] [Next] [Bottom]



<@DAYS>

Syntax

<@DAYS DATE=date DAYS=days [ENCODING=encoding] [FORMAT=format]>

Description

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

00-36

2000s

37-99

1900s

For example, a two-digit year of 99 is evaluated as 1999, and a two-digit year of 00 is evaluated as 2000.


Example

<@DAYS DATE=1998-02-20 DAYS=7>

This tag returns "1998-02-27", the new date, assuming the dateFormat is "%Y-%m-%d".

See Also

dateFormat, timeFormat, timestampFormat
<@DATEDIFF>
Encoding Attribute
<@FORMAT>
Format Attribute



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1999, Pervasive Software. All rights reserved.