Derives the numeric value for the day of the week ( |
NOTE: If the source Datetime value does not include a valid input for this function, a missing value is returned. |
Tip: You can use the |
Column reference example:
weekday(MyDate) |
Output: Returns the numeric weekday values derived from the MyDate
column.
weekday(datetime_col) |
Argument | Required? | Data Type | Description |
---|---|---|---|
datetime_col | Y | datetime | Name of column whose weekday values are to be computed |
Name of the column whose day-of-week value is to be computed.
Tip: You cannot insert constant Datetime values as inputs to this function. However, you can use the following: |
Required? | Data Type | Example Value |
---|---|---|
Yes | Datetime | myDate |