Syntax
Date.DayOfWeek(dateTime as any, optional firstDayOfWeek as nullable number) as nullable number
Description
Returns a number (from 0 to 6) indicating the day of the week of the provided dateTime.
Reference Data
https://docs.microsoft.com/en-us/powerquery-m/power-query-m-function-reference