首页 > TAG信息列表 > last12Months

获取当前月,从上个月开始的最近12个月

/** * 获取当前月,从上个月开始的最近12个月 * @return */ public static String[] getLast12Months(){ String[] last12Months = new String[12]; Calendar cal = Calendar.getInstance(); for (int i = 0; i < 12; i++) {