I have a php variable:
$datevar = date("Y-m-d");
Which shows me the CURRENT date in the specified format.
What I want is the date from 7 days ago for CURRENT date in that format. I have tried:
$datevar = $datevar - 7;
and
$datevar = date("Y-m-d") - 7 ;
But they both cause an error.