$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.
$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.