youv youv - 6 months ago 3x
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


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