2014-12-05 1 views

답변

2
int iYear = 2000; 
int iMonth = Calendar.January; 
int iDay = 1; 

// Create a calendar object and set year and month 
Calendar mycal = new GregorianCalendar(iYear, iMonth, iDay); 

// Get the number of days in that month 
int daysInMonth = mycal.getActualMaximum(Calendar.DAY_OF_MONTH); 
관련 문제