JS Periksa apakah tanggal adalah masa depan
var now = new Date();
if (before < now) {
// selected date is in the past
}
Concerned Curlew
var now = new Date();
if (before < now) {
// selected date is in the past
}