This function allows to obtain the day (current) of the week of the indicated date.
1 date.dayOfWeek
<date.dayOfWeek>
<var /> ?
</date.dayOfWeek>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | Timestamp |
Returns | |
---|---|
Type | Description |
Integer | Returns the day of the week [0-6]. |
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