Solution: DateTime

Let's discuss the solution to the exercise on DateTime.

We'll cover the following

Problem

This activity uses a DateTime to calculate on what day of the week you were born. Create a console application called Birth day of week app 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.