📌  相关文章
📜  检查日期是否超过 php 代码示例

📅  最后修改于: 2022-03-11 14:54:44.490000             🧑  作者: Mango

代码示例1
$date = new DateTime($event['date']);
$now = new DateTime();
if($date < $now) {
    echo 'Date is in the past';
}