why is the next return 0?
int currMonth = c.get(Calendar.MONTH);
Months are numbered from 0 (January) to 11 (December).
Reference:
Calendar.MONTH
Not natural indexing, but unnatural thinking of the people of the Sun. :-)
oops! Sorry - I figured it out. Natural indexing, of course !!!