SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
Calendar c=Calendar.getInstance();
c.set(Calendar.DAY_OF_MONTH,c.getMinimum(Calendar.DAY_OF_MONTH));
String minDate=sdf.format(c.getTime()); //当前月份的最小日期
c.set(Calendar.DAY_OF_MONTH,c.getMaximum(Calendar.DAY_OF_MONTH));
String maxDate=sdf.format(c.getTime()); //当前月份的最大日期
----------------------------------------------------------------------------------------------------------
获取某一日期的月份的最小时间或最大时间
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
Calendar c=Calendar.getInstance();
c.setTime(sdf.parse("2011-02-05"));
c.set(Calendar.DAY_OF_MONTH,c.getMinimum(Calendar.DAY_OF_MONTH));
String minDate=sdf.format(c.getTime()); //当前月份的最小日期
c.set(Calendar.DAY_OF_MONTH,c.getMaximum(Calendar.DAY_OF_MONTH));
String maxDate=sdf.format(c.getTime()); //当前月份的最大日期