Java GregorianCalendar and Calendar misplace weekends, days in a month for August and September, 2010

前端 未结 3 933
星月不相逢
星月不相逢 2021-01-28 18:35

I\'m trying to use either Calendar or Gregorian Calendar to iterate and create a date grid. However, both of them seem to think that August, 2010 has 30 days, and that Septembe

3条回答
  •  盖世英雄少女心
    2021-01-28 19:02

    If you want to continue to use java.util.Calendar, you should probably also use the Calendar.JANUARY, Calendar.FEBRUARY, etc. constants.

提交回复
热议问题