<?php // Get yesterday's date $endDate = date('d/m/Y',(strtotime('-1 day'))); // Get one month earlier $startDate = date('1/m/Y',(strtotime('first day of previous month'))); echo $endDate; echo "/"; echo $startDate;
You have javascript disabled. You will not be able to edit any code.