// 获取当前月的第一天和最后一天
@SuppressWarnings({ "unchecked", "unused", "rawtypes" })
private Map handFirstDayAndLastDayFromMonth(){
Map day=new HashMap();
//获取前月的第一天
Calendar cal_1=Calendar.getInstance();//获取当前日期
cal_1.add(Calendar.MONTH, 0);
cal_1.set(Calendar.DAY_OF_MONTH,1);//设置为1号,当前日期既为本月第一天
day.put("firstDay", sf.format(cal_1.getTime()));
//获取前月的最后一天
Calendar cale = Calendar.getInstance();
cale.add(Calendar.MONTH, 1);
cale.set(Calendar.DAY_OF_MONTH,0);//设置为1号,当前日期既为本月第一天
day.put("lastDay", sf.format(cale.getTime()));
return day;
}