public static int compareDate(Date startDate, Date endDate) { long startTime = startDate.getTime(); long endTime = endDate.getTime(); if (startTime < endTime) { return -1; } if (startTime == endTime) { return 0; } return 1; }
比较两个日期的大小
猜你喜欢
转载自blog.csdn.net/qq_26320085/article/details/93761105
今日推荐
周排行