Im writing a metro card program and I want to output how many days a person has left on their card by subtracting the date current date from the expiration date they imputed. However im unsure how to do this. Ive looked at the Date class and the Gregorian calender class. However, java wont allow me to subtract one Gregorian date from another. The same is true for the date class.
What class should I use or what should I do differently to obtain the difference in days between two dates?


