Incrementing a java.util.Date by one day

前端 未结 8 1029

What is the correct way to increment a java.util.Date by one day.

I\'m thinking something like

        Calendar cal = Calendar.getInstance();
        ca         


        
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-07 01:48

    I believe joda time library makes it much more clean to work with dates.

提交回复
热议问题