Returns the day of the week of the specified date.
weekday( date, [return type])
date: (Date) The date that the day of the week will be calculated from
return_type: (Integer) Controls how the days of the week are numbered with
1 correlating 1-7 with Sunday-Saturday,
2 correlating 1-7 with Monday-Sunday, and
3 correlating 0-6 with Monday-Sunday.
The default value of return_type is
You can experiment with this function in the test box below.