getDay()
The day of the week. A Return Value of 0 = Sunday; 1 = Monday; 2 = Tuesday; 3 = Wednesday; 4 = Thursday; 5 = Friday; and 6 = Saturday.
This function will return the day of the week for the specified Date object.
Examples