package timeUtil; import java.text.SimpleDateFormat; import java.util.Calendar; public class LastDayOfMonth { /** * 获取某月的最后一天 */ public static String getLastDayOfMonth(int year,int month) { Calendar cal = Calendar.getInstance(); //设置年份 cal.set(Calend…