 How to calculate the day of the week?

# How to calculate the day of the week?

### You can use the getDay() function to find the day of the week for a specified date. This function returns a number from 0 to 6 representing each day of the week from Sunday to Saturday respectively. #### Restaurant order form: cycle menu

Let's take the example of a restaurant that offers a cycle menu where there items change based on the day of the week. Instead of creating multiple order forms, one for each day of the week, you can create one order form with separate sections for each day of the week and use Date calculations to show only the relevant menu based on the day of the week. Please follow the instructions below.    #### Use getDay() function to calculate the day of the week

getDay() function returns the day of the week for a specified date. This function returns a number from 0 to 6 representing each day of the week from Sunday to Saturday respectively. To determine the day of the week for the current date, we can use the below formula.

TODAY().getDay()  