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

  1. Design a Date class. The class should support the following functionalities
    1. Compare two dates and give the difference in no of days
    2. Support manipulation of the date like adding and subtracting days and months.
    3. Extract out parts of date day , month , year , day of the week , month name etc
    4. Display the date in a certain format American (mm/dd/yyyy), British (dd/mm/yyyy), Japanese dd.mm.yyyy)
    5. Store a specific date

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!