Returns the minimum value of the required field which the passed calendar as argument can have.
 

1 calendar.getActualMinimum

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

Returns the first day of the month based on today's day.

Copy
<xsql-script name='calendar'>
    <body>
        <println><calendar.getActualMinimum field='DAY_OF_MONTH'>
            <calendar>
                <date.current/>
            </calendar>
        </calendar.getActualMinimum></println>
    </body>
</xsql-script>

The result is:

Copy
1
Example

Returns the first month of the year based on today's day.

Copy
<xsql-script name='calendar'>
    <body>
        <println><calendar.getActualMinimum field='MONTH'>
            <calendar>
                <date.current/>
            </calendar>
        </calendar.getActualMinimum></println>
   </body>
</xsql-script>

The result is:

Copy
0