dayOfWeek# swordfish.function.dayOfWeek()# Return which day of the week is X. Parameters: X (Constant) – A scalar/vector of type DATE, DATETIME, DATEHOUR, TIMESTAMP or NANOTIMESTAMP. Returns: An integer from 0 to 6, where 0 means Monday, .., 6 means Sunday. Return type: Constant