Tap here to switch tabs
Problem
Submissions

Problem: Day of the Week

med
30 min
Try to solve the Day of the Week problem.

Statement

Given three integers day, month, and year that represent a valid date, return the corresponding day of the week as a string.

The return value must be one of the following: {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}.

Constraints:

  • The given dates are valid dates between the years 19711971 and 21002100.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Day of the Week

med
30 min
Try to solve the Day of the Week problem.

Statement

Given three integers day, month, and year that represent a valid date, return the corresponding day of the week as a string.

The return value must be one of the following: {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}.

Constraints:

  • The given dates are valid dates between the years 19711971 and 21002100.