youv youv - 1 year ago 64
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 Source

You can try using date_modify function for example see this php documentation