Add or subtract the specified amount of time to the calendar, based on the calendar's rules.

<calendar.add    field='field'    value='value'>    <calendar /> !</calendar.add>

Example

Modify the calendar day. First a calendar is defined and it is obtained by screen today. Then one day is added to the same calendar and printed on the screen to see the result.

Copy
<xsql-script name='calendar_add'>
<body>
<set name='cal'>
<calendar />
</set>

<set name='mday'>
<calendar.get field= "DAY_OF_MONTH"><cal/></calendar.get>
</set>

<println>Today : <mday/></println>

<set name='tomorrow'>
</xsql-script>
Today : 22
Tomorrow : 23