【JAVA】指定日が本日以降かチェック
public void test(Timestamp targetDate, Timestamp currentTime) {
// 指定日を設定
GregorianCalendar target = new GregorianCalendar();
target.setTime(targetDate);
// 本日を設定
GregorianCalendar current = new GregorianCalendar();
current.setTime(currentTime);
if (target.after(current)) {
// 指定日が本日以降
} else {
// 指定日本日以降ではない
}
}