Answers for "get dates of previous week php"

PHP
2

php check weekday of date

$dayofweek = date('w', strtotime($date));
$result    = date('Y-m-d', strtotime(($day - $dayofweek).' day', strtotime($date)));
Posted by: Guest on April-29-2020

Code answers related to "get dates of previous week php"

Browse Popular Code Answers by Language