Modify the specified field of the calendar with the inserted value.

1 calendar.set

<calendar.set
    field='field'
    value='value'
>
    <calendar /> +
</calendar.set>
Example

The current calendar is modified by setting the day 10 and the month of December. Then, the information is showed by screen to see the result.

Copy
<xsql-script name='calendar'>
    <body>
        <set name='my_cal'>
            <calendar.set field='DATE' value='10'>
                <calendar />
            </calendar.set>
        </set>
        <set name='my_cal'>
            <calendar.set field='MONTH' value='11'>
                <my_cal/>
            </calendar.set>
        </set>

        <println><calendar.getTime>
            <my_cal/>
        </calendar.getTime></println>
    </body>
</xsql-script>

The result is:

Copy
10-12-2016