I am new to Java and could use some advice, help, examples .. anything I can get ..
 
I am trying to calculate the number of days between two gregorian dates.
 
Example 04/10/1992 - 04/08/1992 = 2 days.
 
I am using the GregorianCalendar and it works fine as long as the dates fall within the same year. However, if one of the dates is of a different year ( e.g. -  04/10/1992 - 02/15/1991 ) the calculation does not work correctly ..
 
Does anyone out there have any ideas as to what I am doing wrong?

Reply via email to