used switch to get day of the week