youv youv - 7 months ago 10
PHP Question

Calculate date before n days of a month

How to calculate a date before 10 days of every month end ?Am using codeigniter platform.

I need to check whether a date is within 10 days before the end of every month.

Please help

Answer

You can try using date_modify function for example see this php documentation http://php.net/manual/en/datetime.modify.php

Comments