Answers for "php strtotime -\ 1 day"

PHP
6

php strtotime

echo strtotime("now"); //1624416532
echo date("d M. Y", strtotime("now")); // 23 Jun. 2021

$time_c = strtotime("2021-06-07 05:57:51");
echo date("d M. Y", $time_c); // 07 Jun. 2021
echo date("H:i", $time_c); // 05:57
Posted by: Guest on June-23-2021
0

php strtotime plus 1 day

$NewDate = date('Y-m-d', strtotime('+7 days'));
Posted by: Guest on June-04-2020

Browse Popular Code Answers by Language