Question: Design a Date class. The class should support the following functionalities Compare two dates and give the difference in no of days Support manipulation of
- Design a Date class. The class should support the following functionalities
- Compare two dates and give the difference in no of days
- Support manipulation of the date like adding and subtracting days and months.
- Extract out parts of date day , month , year , day of the week , month name etc
- Display the date in a certain format American (mm/dd/yyyy), British (dd/mm/yyyy), Japanese dd.mm.yyyy)
- Store a specific date
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
