int function ( int arg0 , int arg1 ) { if ( arg0 == 4 || arg0 == 6 || arg0 == 9 || arg0 == 11 ) { return 30 ; } if ( arg0 == 2 ) { if ( ( arg1 % 4 == 0 ) && ( arg1 % 100 != 0 ) ) { return 29 ; } else return 28 ; } return 31 ; }
function : public static int getnumdate int nmonth , int nyear description : get the number of dates in month/year parameters : - nmonth in : month - nyear in : year return : int author : duong thanh nhan created date : 2001 concode_field_sep Calendar m_CreateDate concode_elem_sep String m_strTime concode_elem_sep DecimalFormat decimalFormatter concode_elem_sep String m_strDate concode_elem_sep SimpleDateFormat formatter concode_elem_sep String DATE_FORMAT concode_field_sep void formatDate concode_elem_sep int getDateFromString concode_elem_sep String getCurrentDate concode_elem_sep String getTime concode_elem_sep int getYearFromString concode_elem_sep String getDate concode_elem_sep int getMonthFromString concode_elem_sep String getCurrentTime concode_elem_sep String getCurrentTime concode_elem_sep int getNumWeek concode_elem_sep void printDiff2Dates