2011年12月5日
摘要: /** * 从当前日期算起,获取N天前的日期(当前日不算在内),日期格式为yyyy-MM-dd * * @param daily 天数 * @return */ public static String getDateByDay(Integer daily) { Date date = new Date(); int year = Integer.parseInt(new SimpleDateFormat("yyyy").format(date)); int month = Integer.parseInt(new SimpleDateFormat("MM&quo 阅读全文
posted @ 2011-12-05 10:31 Ruthless 阅读(4212) 评论(1) 推荐(1)