SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
$date = date("Y-m-d", strtotime("-5 day"));