Date.DayOfWeek
This function calculates and returns a number (ranging from 0 to 6) that represents the day of the week for the specified date and time. The input parameters include dateTime (which can be a date, dat...
Date.DayOfWeek(dateTime as any, optional firstDayOfWeek as nullable number) as nullable number
This function calculates and returns a number (ranging from 0 to 6) that represents the day of the week for the specified date and time. The input parameters include dateTime (which can be a date, date and time, or date, time, and time zone value) and firstDayOfWeek (which specifies the starting day of the week and can be set to Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday). If the firstDayOfWeek parameter is not provided, the function will use a default value based on the culture settings.