# Leetcode 1185 - Day of the Week

Note:

• It’s a Friday on Jan 1st 1971.
• Start calculate day diffs from that day.
• Then use mod % 7 to find the offset.

Question:

Given a date, return the corresponding day of the week for that date.

The input is given as three integers representing the day, month and year respectively.

Return the answer as one of the following values {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}.

Example:

Code: