Calendar time=Calendar.getInstance()time.clear();time.set(Calendar.YEAR,year); //year 为 int time.set(Calendar.MONTH,month-1); //month 为intint day=time.getActualMaximum(Calendar.DAY_OF_MONTH);某年year ,某月month ,天数day