Answers for "how to get the yestrerday date in php variable"

PHP
1

php yesterday

$yesterday = new DateTime('yesterday');
echo $yesterday->format('Y-m-d');
Posted by: Guest on December-21-2020

Code answers related to "how to get the yestrerday date in php variable"

Browse Popular Code Answers by Language