This content has been marked as final. Show 2 replies
What output did you expect?
You do know that month value is 0-based. e.g., 0 for January, right?
The Date and Calendar classes have existed for ages, you are not going to find such an obvious bug where thousands of developers before you did not over the last decade and a half. Next time, simply go look at the javadocs.