dayofweek
The dayofweek function returns an integer between 0 and 6 representing the day of the week, beginning on Sunday.
This differs from the standard Kusto
dayofweekfunction, which returns a timespan.
Syntax
dayofweek( Date )
Arguments
- Date: A
datetime.
Returns
The timespan since midnight at the beginning of the preceding Sunday, rounded down to an integer number of days.
Example
This example returns `2 for Tuesday:
print dayofweek( datetime(2025-12-16) )