How to find out previous day in php from current date
$today = ’2011-07-04′; $prvsday = strtotime(‘-1 day’, strtotime($today)); $previousday= date(‘Y-m-d’, $prvsday); echo $previousday; here instead of -1 day we can use +1 day to find out upcoming date.