Answers for "get 7 day before date php"

PHP
0

get 2 days before date in php

date('Y/m/d',strtotime("-1 days"));

Or Use DateTime class like this-

$date = new DateTime();
echo $date->modify("-1 days")->format('Y-m-d');
Posted by: Guest on June-22-2021
0

php date start of day

$startOfDay=date("Y-m-d 00:00:00");
Posted by: Guest on June-26-2021

Browse Popular Code Answers by Language