Answers for "time less than comparison php"

PHP
0

string date less than now php

<?php

    $date_now = time(); //current timestamp
    $date_convert = strtotime('2022-08-01');

    if ($date_now > $date_convert) {
        echo 'greater than';
    } else {
        echo 'Less than';
    }

?>
Posted by: Guest on September-23-2021
2

date comparison function in php

Select if(Date('2020-10-01') > Date('2020-11-01'), '1', '2' ) as rslt_date
Posted by: Guest on December-30-2020

Browse Popular Code Answers by Language