merchandise.setEndTime(new Date());我想在一个new Date()的基础上加上一天在set进去应该怎么办!谢谢!
解决方案 »
- 如何将对象序列化到Cookie
- 监听器问题
- 高手们帮帮忙!JAVA实体类必须要写构造方法吗
- JMS 客户端是否需要定时去取 ActiveMq 上的消息?
- 版本号一般都怎么规定?
- java script 弹出窗口问题,不好用 !!!!大家 进来看看啊!
- struts中传递request参数的问题,急!
- 小弟初学Spring,请各位大哥多多关照!
- 请问将tomcat的端口改为80后,为什么访问不了127.0.0.1/admin了,总是把他的目录的文件列出来
- 如何在iframe中打开新窗口,新窗口仍然保持着原来页面的框架
- websphere 加载不到native library
- Web应用与非Web应用 容器问题的疑惑
new Date(System.currentTimeMillis()+24*3600*1000)
date.setTime(date.getTime()+24*60*60*1000);
merchandise.setEndTime(date);
Calender calender = Calender.getInstance();
calender.setTime(new Date());
calender.add(Calendar.DAY_OF_MONTH, 1);
Date afterDay = calender.getTime();
应该是 Calendar
datenow.setDay(datenow.getDay()+1);