Java Calendar Setting Incorrectly

前端 未结 6 1314
离开以前
离开以前 2021-01-25 13:34

I\'m having some trouble with Java\'s Calendar. I\'m parsing some data from a txt file, and need to create a date. After completion of the following code:

tmpYea         


        
6条回答
  •  孤街浪徒
    2021-01-25 14:12

    When you set the Calendar.MONTH field, it is zero-based. {January=0... December=11}

提交回复
热议问题