Java.text.SIMPLEDATEFORMAT DF = New java.text.SIMPLEDATEFORMAT ("YYYY-MM-DD"); java.util.gregoriancalendar g = new java.util.gregoriancalendar (); g.settime (new java.util.date) ))); g.Add (java.util.calendar.date, -10); system.out.println (DF.Format ());