This function allows to obtain the day (current) of the week of the indicated date.

1 date.dayOfWeek

<date.dayOfWeek>
    <var /> ?
</date.dayOfWeek>
Example
Copy
<xsql-script name='date_dayofweek_sample1'>
    <body>
        <set name='var'>
            <date.dayOfWeek><date>09-02-2005</date></date.dayOfWeek>
        </set>
        <println><var /></println>
    </body>
</xsql-script>

Returns the value '0' for Sunday and the value '6' for Saturday.

Returns:

Copy
3