I need to produce two methods for a class. The method name and details are given but i dont know how to create the code for them to work:
public int daysElapsed (int day1, int month1, int year1, int day2, int month2, int year2)
This method returns the number of days between any 2 dates.
public int ageDate (int dayBirth, int monthBirth, int yearBirth)
This method must return a person’s age in years as at today’s date.
If someone could help me with the code needed, i would be most grateful. If i need to provide any for info please let me know.Thanks.