Returns the number of days elapsed since the beginning of the year.
 

1 date.dayOfYear

<date.dayOfYear>
    <var /> ?
</date.dayOfYear>
Example

Returns the number of days elapsed.

Copy
<xsql-script name='date_dayofyear_sample1'>
    <body>
        <set name='var'>
            <date.dayOfYear>
                <date format='dd-MM-yyyy'>09-05-2005</date>
            </date.dayOfYear>
        </set>
        <println><var /></println>
    </body>
</xsql-script>

Returns:

Copy
129