WEEKDAY

Scripting Formulas Time & Date

TIME.WEEKDAY

TIME.WEEKDAY(value)

Returns the day of the week for a datetime value as a number 0-6.