Returns the value of the field of the specified calendar.

1 calendar.get

<calendar.get field='field'>
    <calendar /> +

A calendar is created with today and you are asked to give the numerical value of the month of the year. When you print it on the screen you get the result.

<xsql-script name='calendar_add'>
        <set name='cal'>
            <calendar />
        <set name='mday'>
            <calendar.get field='DAY_OF_MONTH'>
                <cal />
        <println>Day of month: <mday/></println>

The result is:

Day of month: 22