I have to take out the difference betewen two dates like 1980/10/10 and 2000/05/05.
Could you please tell me that how will i will be able to calculate difference in Months.
Thanks Regards Gaurav
Joined: Mar 22, 2005
The java.text.SimpleDateformat.parse method will convert those strings into Date objects. Then you can use Date.getTime to obtain a millisecond value of both dates. If you then subtract those from each other, and properly divide the result, you will get the number of months in between.