| | |
| | | "09", "11", "12", "13", "14", "15", "16", "17", "18", "19", |
| | | "20", "21", "22", "23" }; |
| | | } |
| | | |
| | | |
| | | public static int[] dayGrpInMonth(int year, int month){ |
| | | if(month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12){ |
| | | return new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31} ; |
| | | }else{ |
| | | if(month == 2){ |
| | | if(isLeapYear(year)){ |
| | | return new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29} ; |
| | | }else{ |
| | | return new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28} ; |
| | | } |
| | | }else{ |
| | | return new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30} ; |
| | | } |
| | | } |
| | | } |
| | | |
| | | public static String getWeek(int wk) { |
| | | if (wk == 1) { |