PDA

View Full Version : DateWrapper + addDays



fother
13 Aug 2009, 6:08 AM
final DateWrapper wrapper = new DateWrapper(new Date());
wrapper.addDays(5);

System.out.println(wrapper.asDate());


I need add 5 days in my date.. how I can do this?
my code always will print the current date (its wronge)

fother
13 Aug 2009, 6:13 AM
this work :)



final DateWrapper wrapper = new DateWrapper(date);

System.out.println(wrapper.addDays(5).asDate());