当前位置: 技术问答>java相关
jsp中有没有将当前日期加1天返回的类或函数?
来源: 互联网 发布时间:2015-02-06
本文导语: 类似于dateadd之类的? | Date addOneDay(Date oldDate) { Date newDate = new Date(); newDate.setTime(oldDate.getTime() + 24*60*60*1000); return newDate; }
类似于dateadd之类的?
|
Date addOneDay(Date oldDate)
{
Date newDate = new Date();
newDate.setTime(oldDate.getTime() + 24*60*60*1000);
return newDate;
}
{
Date newDate = new Date();
newDate.setTime(oldDate.getTime() + 24*60*60*1000);
return newDate;
}