<?php date_default_timezone_set('UTC'); //should be set in your script or in your php.ini $date = new DateTime('FIRST DAY OF PREVIOUS MONTH'); echo $date->format('Y-m-d'), PHP_EOL;
You have javascript disabled. You will not be able to edit any code.