Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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';
    }

?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #date #php
ADD COMMENT
Topic
Name
1+8 =