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.
-
Ask the questions:
- What year were you born?
- What month were you born?
- What day were you born?
-
Create a
DateTime
object from the answers. -
Display the day of the week you were born.
Get hands-on with 1400+ tech skills courses.