Java怎么比较日期
if(todayDate.after(historyDate)) {
//todayDate > historyDate
}
if( todayDate.before(futureDate)) {
//todayDate < historyDate
}
if(todayDate.after(historyDate) && todayDate.before(futureDate)) {
//futureDate > todayDate > historyDate
}
Loading...