1185. Day of the Week
https://leetcode.com/problems/day-of-the-week
Description
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 1:
Example 2:
Example 3:
Constraints:
The given dates are valid dates between the years
1971
and2100
.
ac
Last updated