Coding Exercise: DateTime
Test your understanding of DateTime.
We'll cover the following
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.
-
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.