This is not a bug. It is the intended functionality of Calendar. It clearly states this in the Javadocs.
From Javadocs for Calendar:
Code:
MONTH
public static final int MONTH
Field number for get and set indicating the month. This is a calendar-specific value. The first month of the year is JANUARY which is 0; the last depends on the number of months in a year.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.