The selected date is interesting as an example. Code example:
Calendar c1 = GregorianCalendar.getInstance(); c1.set(2000, 1, 30);
and output Wed Mar 01 19:32:21 JST 2000 .
When I first read the example, I think the conclusion is wrong, but it's true :). Calendar.Month starts at 0, so 1 means February. And you know that the last day is 28, so the release should be March 2. But the chosen year is important, this is 2000, that is, February 29, so the result should be March 1.
erhun Dec 11 2018-12-12T00: 00Z
source share