Periksa apakah tanggal sudah lewat php
$date = new DateTime($event['date']);
$now = new DateTime();
if($date < $now) {
echo 'Date is in the past';
}
VasteMonde
$date = new DateTime($event['date']);
$now = new DateTime();
if($date < $now) {
echo 'Date is in the past';
}