You are viewing a single comment's thread. Return to all comments →
In java the Calendar class has all the months defined as static integers which range from 0=january to 11=december. That's why -1.
https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html#MONTH
Seems like cookies are disabled on this browser, please enable them to open this website
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
In java the Calendar class has all the months defined as static integers which range from 0=january to 11=december. That's why -1.
https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html#MONTH