What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-03 16:15:24
php difference between two dates in years months and days
//get Date diff as intervals $d1 = new DateTime("2018-01-10 00:00:00"); $d2 = new DateTime("2019-05-18 01:23:45"); $interval = $d1->diff($d2); $diffInSeconds = $interval->s; //45 $diffInMinutes = $interval->i; //23 $diffInHou... Add solution -
PHP 2021-11-02 14:51:10
tomorro date php
$tomorrow = date("Y-m-d", strtotime('tomorrow')); or $tomorrow = date("Y-m-d", strtotime("+1 day")); for DateTime $datetime = new DateTime('tomorrow'); echo $datetime->format('Y-m-d H:i:s'); or $datetime = new DateT... Add solution