- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$now = new \DateTime('now');
$currentMonth = $now->format('n');
echo $currentMonth;
$today = date('Y-n-j');
$last1 = "2021-11-1";
if($today > strtotime($last1))
echo 'true';