Why does Calendar.get (Calendar.MONTH) return 0?

why is the next return 0?

int currMonth = c.get(Calendar.MONTH); 
+6
java calendar
source share
3 answers

Months are numbered from 0 (January) to 11 (December).

Reference:

+33
source share

Not natural indexing, but unnatural thinking of the people of the Sun. :-)

+8
source share

oops! Sorry - I figured it out. Natural indexing, of course !!!

0
source share

All Articles