i have two value date 2019-07-30 as startdate and 2019-07-31 as enddate. 2019-07-30 more is date now. and this my code :
$start_date = "2019-07-30";
$end_date = "2019-07-31";
$date_now = timetodate(DT_TIME, 3); //2019-07-30
if(($date_now >= $start_date) && ($date_now <= $end_date)){
echo "promo active!";
}
and how i display promo active even though startdate bigger equal to date_now (30 >= 30)