I currently use the following code, to check if the
$productEta is in the future, based on the date of today. But that is not working well.
Its a dynamic code, so I will provide the entire code:
$productEta = 01-07-2019 date("m-d-Y") = 12-28-2018 <?php if ($productEta < date("m-d-Y")) :?> TEST <?php endif; ?>
But today it is showing TEST, but that should not be right. Because the
$productEta value is larger than the current date. So it should skip it. The year seems to be the problem, that it does not check 2018 or 2019.
How can I solve this?