leftso 336 0 2018-12-11 12:51:38

文章位置:左搜> 编程技术> 正文

 
Calendar calendar=Calendar.getInstance();
calendar.set(Calendar.MONTH,11);
calendar.set(Calendar.DATE,calendar.getActualMaximum(Calendar.DAY_OF_MONTH));//获取月份的最后一天
calendar.set(Calendar.HOUR,23);
calendar.set(Calendar.MINUTE,59);
calendar.set(Calendar.SECOND,59);



 
编程技术 Calendar