public class Test
{
public static void main(String[] args)
{
Date date = new Date();
System.out.println(date);
long time = date.getTime();
time += 180l * 24 * 3600 * 1000;
date = new Date(time);
System.out.println(date);
}
}
Fri Sep 10 16:33:47 CEST 2010
Wed Mar 09 15:33:47 CET 2011