Returns the number of the day of the week for a given date.
Syntax
'weekday' ( <datetime> )
Parameters
<datetime> is a datetime operand.
Returns
Integer
Example
'weekday' ( connection : \'DB'::'TBC.tbc.SALES'.'TRANSDATE' )