Returns the value of the field of the specified calendar.
 

1 calendar.get

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

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.

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>Day of month: <mday/></println>
    </body>
</xsql-script>

The result is:

Copy
Day of month: 22