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>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Alanguage | String | Language used to obtain the regional configuration. | |||
Acountry | String | Field used with the language to obtain the regional configuration. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | Timestamp | Object to add in the array. It may not indicate any object or put several objects one followed by another, they will be added in an orderly fashion in the array. |
Returns | |
---|---|
Type | Description |
Integer | Returns the number of weeks since the beginning of the year. |
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