标签:bsp rgs maximum ati public test bool instance new
获取当前日期:
public class TestDate {
public static void main(String[] args) {
Date now = new Date();
Calendar cal = Calendar.getInstance();
}
获取当月最后一天:
public static boolean isMonthEnd(Date date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
return calendar.get(Calendar.DATE) == calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
}
标签:bsp rgs maximum ati public test bool instance new
原文地址:http://www.cnblogs.com/chafe/p/6074646.html