Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Interval Between Different Dates

$datetime1 = new DateTime('2009-10-11 12:12:00');
$datetime2 = new DateTime('2009-10-13 10:12:00');

$interval = $datetime1->diff($datetime2);
echo $interval->format('%Y-%m-%d %H:%i:%s');
Comment

PREVIOUS NEXT
Code Example
Php :: laravel plural 
Php :: laravel add (s) at the end of text based on how many data 
Php :: php 301 redirect 
Php :: php array to js 
Php :: php debug telegram bot 
Php :: php get all function arguments 
Php :: redirect 301 wordpress 
Php :: link js file in php 
Php :: laravel migration add unique column 
Php :: php get number from string 
Php :: php string replace space 
Php :: laravel save relationship to authorized user with parameter 
Php :: get post thumbnail url 
Php :: laravel Postcontroller.php 
Php :: qual é a melhor linguagem de programação para iniciantes 
Php :: php get content phpinfo without show 
Php :: php get domain name from url 
Php :: how to check number only in php 
Php :: last day of previous month in php 
Php :: convert php array to javascript array 
Php :: erd in phpmyadmin 
Php :: php text Cyrillic check 
Php :: kill laravel server 
Php :: laravel 5.4 forelse 
Php :: indian time laravel 
Php :: get http code curl php 
Php :: DB::rollback() 
Php :: date 3 months ago for a particular date php 
Php :: how to get all rows from a table except some rows in laravel 
Php :: link to another page php 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =