You are required to write a Java class, called Date, that can be used to represent dates.
The date object should be represented as three integers for day, month and year. The year must be stored in full, example, 2004 and not 04.
Provide appropriate constructors, get() and set() methods for day, month, year. getYear() should return the year in full ( 1998, 2004 etc. ) and getMonth() should return a String representing the name of the month. Finally, you should provide a toString() method that returns a String representation of the date in full, for example,
22nd December, 1999
12th January, 2006
The day should be followed by an appropriate suffix on the day, â€˜thâ€™, â€˜stâ€™, â€˜ndâ€™ or â€˜rdâ€™
Provide a main() method that tests your class thoroughly.
Source filename: DateEx.java
PLEASE HELP ME OUT !! ITS URGENT