can you get the day of the week from a given date? Is there a function for this?

Thank you