2013年6月9日
摘要: /** * 计算两个时间月数的差 * @param date1 减数 * @param date2 被减数 * @return 月数的差 */ public static int calculateMonthIn(Date date1, Date date2) { Calendar cal1 = new GregorianCalendar(); cal1.setTime(date1); Calendar cal2 = new GregorianCalendar(); cal2.setTime(date2); int c = (cal1.get(Calendar... 阅读全文
posted @ 2013-06-09 15:23 王者归来GO 阅读(410) 评论(0) 推荐(0) 编辑