I won't post code here, you can figure it out by looking at the SimpleDateFormat class. Another thing, avoid to call your class "Calendar", because it's already an Java API class.
yes, I think you can use these apis and codes: apis: SimpleDataformat java.util.GregorianCalendar.
codes: .....
public Date getTheAfterDay(Date date, int days) { GregorianCalendar startCalendar = new GregorianCalendar(); startCalendar.setTime(date); startCalendar.add(GregorianCalendar.DATE, days); return startCalendar.getTime(); }
You need import java.util.Date and java.util.GregorianCalendar . Good Luck! if you have any qustions please contact me , my msn :wp_java_wp@hotmail.com