How is the user inputting the month? As an int (11 for November)? Then you would use the set method and subtract one from the input.
cal.set(Calendar.MONTH, userInput - 1);
Of course you would...
Type: Posts; User: Junky
How is the user inputting the month? As an int (11 for November)? Then you would use the set method and subtract one from the input.
cal.set(Calendar.MONTH, userInput - 1);
Of course you would...
Java uses 0 for January and 11 for December. I haven't looked at your code but is this your problem? To avoid problems like this you should use constants in the Calendar class.