Returns the number of weeks since the beginning of the year. It can use the parameter "language='de'" in the call to the function to get the week according to the norm (DIN 1355-1/ISO 8601). In this norm, the week 1 of the year corresponds to the first week of thew year with 4 or more days.
 

1 date.weekOfYear

<date.weekOfYear
    language='language'
    country='country'
>
    <var /> ?
</date.weekOfYear>
Example

Returns the weeks since the beginning of the year.

Copy
<xsql-script name='date_weekOfYear_sample1'>
    <body>
        <set name='var'>
            <date.weekOfYear>
                <date format='dd-MM-yyyy'>23-01-2005</date>
            </date.weekOfYear>
        </set>
        <println><var /></println>
    </body>
</xsql-script>

Returns:

Copy
3