Tap here to switch tabs
Problem
Submissions

Problem: Day of the Week

Day of the Week provides a valid calendar date through its day, month, and year. Return the weekday name for that date, choosing from Sunday through Saturday.

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

Day of the Week provides a valid calendar date through its day, month, and year. Return the weekday name for that date, choosing from Sunday through Saturday.

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.