I am just trying to find out the logic to calculate.. I have only found out the number of months between the two dates with a simple formula. But now i want the month names..
Formula for calucating number of months=(Difference between yrs*12)+difference btwn months+1;
So how do i get the month names..
> I am just trying to find out the logic to calculate..
> I have only found out the number of months between
> the two dates with a simple formula. But now i want
> the month names..
> Formula for calucating number of months=(Difference
> between yrs*12)+difference btwn months+1;
>
> So how do i get the month names..
Simplest logic that you could try.
1. Add a month to the starting date [use Calendar for that]
2. Check if the date is greater than or equal to the ending date.
3. If it isn't, print out the month and year (or whatever you want)
4. If it is, end your program.
Now, go and try writing some code.