<?php var_dump(date('Y-m-d', strtotime(date('Y-m-01').' -1 MONTH'))); var_dump(date('Y-m-d', strtotime('first day of last month')));
You have javascript disabled. You will not be able to edit any code.