Question
This is to be in C# and this project is being made in Microsoft Visual Studio Create a Date class that does the following: o
This is to be in C# and this project is being made in Microsoft Visual Studio
Create a Date class that does the following: o A default constructor o A constructor with a string argument o An integer member variable that represents the date in the following format: YYYYMMDD i.e. 20070212 means February 12, 2007 o A string member variable that represents the date in the following format: YYYY-MM-DD o An integer member variable that represents a year o An integer member variable that represents a month o An integer member variable that represents a day of the month o A method that converts a YYYY-MM-DD into YYYYMMDD o A method that converts a YYYYMMDD into YYYY-MM-DD o A method that extracts only the year from YYYYMMDD o A method that extracts only the month from YYYYMMDD o A method that extracts only the day from YYYYMMDD
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started