I need help getting the previous months full date range in the following format: Y-m-d
I have successfully been able to get "this" months full date range but not the "previous" months full date range.
Any help is greatly appreciated!
This gets the job done correctly:
echo date('Y-m-01 - Y-m-t', strtotime('previous month'));
Here is the proof: http://ideone.com/L82ZW