You are viewing a single comment's thread. Return to all comments →
because user will input starting from 1 (JAN=1) but Calendar stores month in 0 based index, so JAN = 0, FEB = 1, etc so u need to -1 from 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 →
because user will input starting from 1 (JAN=1) but Calendar stores month in 0 based index, so JAN = 0, FEB = 1, etc so u need to -1 from month