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



<@DAYS>

Syntax

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

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!".

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 © 1998, Pervasive Software Inc. All rights reserved.