When i execute this code with the date mentioned above in LINE 1, the program never terminates and goes into an infinite loop. But if i change the date in line 1 to "01/03/2008". The program works perfectly and gives the difference betwee the two dates in months.
Kindly provide your help. Regards, Vijay
Joined: Mar 22, 2005
If you start in December of 2007, and keep adding months until you reach March of 2007, of course it's not going to stop. You need to ensure that the start date isn't after the end date.