/** * 判断两个时间是否相隔一天 */ public static boolean overOneDay(String date1,String date2){ Date startTime =stringToDate(date1); Date endTime =stringToDate(date2); long between = endTime.getTime() - startTime.getTime(); if(between > (24* 3600000)){ return true; } return false; }
时间: 2024-12-15 07:10:54