Skip to content
Advertisement

Tag: php-carbon

PHP Carbon Check If Chosen Date is Greater than Other Date

I’ve started using PHP Carbon for my application since it seems so much easier than using and manipulating date/time with the DateTime class. What I want to do is check if the chosen date ($chosen_date) is greater than another date ($whitelist_date). I have tried this in the code below: The original $chosen_date value comes from POST data. Here is the

Advertisement