How to add 7 days to current date while not going over available days of a month?

前端 未结 8 1005
长发绾君心
长发绾君心 2020-12-06 17:16

I am trying to get todays day of the month.

And what i want to do is add seven days to the number and the get that current day of the month.

Also i want it t

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 17:44

    Date newDate = new Date(current timestamp in millis + 604800000L);//after 7 days
    

提交回复
热议问题