find out the weekday for a given date