以下の内容はhttps://blog.systemjp.net/entry/2020/11/08/150531より取得しました。


PHPで日付比較

strtotime()を使おう

today = date("Y/m/d");
$target_day = "2014/06/10";
if(strtotime($today) === strtotime($target_day)){
  echo "ターゲット日付は今日です";
}else if(strtotime($today) > strtotime($target_day)){
  echo "ターゲット日付は過去です";
}else{
  echo "ターゲット日付は未来です";
}



以上の内容はhttps://blog.systemjp.net/entry/2020/11/08/150531より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14