How do I get the day of week given a date?
Use weekday(): From the documentation: Return the day of the week as an integer, where Monday is 0 and Sunday is 6.
Use weekday(): From the documentation: Return the day of the week as an integer, where Monday is 0 and Sunday is 6.