PHP 7? The latest version of PHP I know about is PHP 5.
PHP has no function for direct comparison of dates. One thing to try is to use strtotime() to convert both dates into integers then compare the integers.
If you simply want to compare two dates for equivalence, just compare the two date strings. Assuming both date strings are formatted the same way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.