Thank
------ Solution ---------------------------------- ----------
into milliseconds together, then format
------ Solution ----------------- ---------------------------
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Date date = format.parse("2010-01-05");
Calendar c = Calendar.getInstance();
c.setTime(date);
c.add(Calendar.DATE, 21);
date = c.getTime();
System.out.println(format.format(date));
------ Solution ------- -------------------------------------
Well , 2nd Floor positive solution . My project is a tool for these methods to the class to use.
没有评论:
发表评论