Coding Exercise: DateTime

Test your understanding of DateTime.

Problem

This activity uses a DateTime to calculate the day of the week you were born. Create a console application called Birth Day of Week that meets the requirements below.

  1. Ask the questions:

    • What year were you born?
    • What month were you born?
    • What day were you born?
  2. Create a DateTime object from the answers.

  3. Display the day of the week you were born.

Get hands-on with 1400+ tech skills courses.