Answers for "php ceil two days ago"

PHP
2

php 3 months ago

echo date("d.m.Y", strtotime("-3 Months"));
Posted by: Guest on November-10-2021
4

Get the number of days between two dates in PHP

$startDate = new DateTime("2019-10-27");
$endDate = new DateTime("2020-04-11");

$difference = $endDate->diff($startDate);
echo $difference->format("%a");
Posted by: Guest on January-14-2021

Browse Popular Code Answers by Language