How to get the month names between two different dates

HiCan anyone tell me how to find the month names between two different dates spanning between more than one year. Plz send me codes if you haveRegards,Guru
[190 byte] By [Guruprasada] at [2007-10-3 4:01:28]
# 1
How will you do it with a pencil and paper?Hint: There are only 12 months in a year.
lupansanseia at 2007-7-14 22:00:42 > top of Java-index,Java Essentials,Java Programming...
# 2
If Start date is 01/12/2006 and End date is 01/02/2007 then i want the month names between these two dates... Ans should be Dec 06,Jan 07,Feb 07. How can i get it?
Guruprasada at 2007-7-14 22:00:42 > top of Java-index,Java Essentials,Java Programming...
# 3
what have you done so far?
lupansanseia at 2007-7-14 22:00:42 > top of Java-index,Java Essentials,Java Programming...
# 4

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..

Guruprasada at 2007-7-14 22:00:42 > top of Java-index,Java Essentials,Java Programming...
# 5
Take a look at the date and calendar API.I hope you will be able to find the Month of that particular date.And use it with the reality that there are only 12 months in the year.
lupansanseia at 2007-7-14 22:00:42 > top of Java-index,Java Essentials,Java Programming...
# 6
Send me your email id and i will send you the function.
bscheemaa at 2007-7-14 22:00:42 > top of Java-index,Java Essentials,Java Programming...
# 7

> 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.

aniseeda at 2007-7-14 22:00:42 > top of Java-index,Java Essentials,Java Programming...