📅  最后修改于: 2022-03-11 14:52:20.096000             🧑  作者: Mango
代码示例4
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DATE, cal.getActualMaximum(Calendar.DATE));
Date lastDayOfMonth = cal.getTime();