Search
 
SCRIPT & CODE EXAMPLE
 

PHP

substract 2 dates php

$datetime1 = strtotime('May 3, 2012 10:38:22 GMT');
$datetime2 = strtotime('06 Apr 2012 07:22:21 GMT');

$secs = $datetime2 - $datetime1;// == <seconds between the two times>
$days = $secs / 86400;
Comment

PREVIOUS NEXT
Code Example
Php :: php sort associative array by specific value 
Php :: php required 
Php :: laravel drop table column 
Php :: cloudflare ip country 
Php :: laravel asset 
Php :: php fix array keys 
Php :: How do I get the current date and time in PHP? 
Php :: using php, how to create a folder in another folder 
Php :: php isset array 
Php :: laravel force delete 
Php :: how get the Photo size upload in laravel 
Php :: laravel image validate 
Php :: dompdf with qr code 
Php :: array unique php 
Php :: allowed memory size of bytes exhausted composer 
Php :: codeigniter 3 or where not in 
Php :: laravel 8 route 
Php :: convert all text in php to uppercase 
Php :: laravel 5.8 cors 
Php :: duplicate record laravel 
Php :: session laravel 
Php :: how to execute cmd command in php 
Php :: php program to find factorial of a number using function 
Php :: Append a text string to WooCommerce single product title 
Php :: nova laravel image 
Php :: validation in laravel 
Php :: prettier with php 
Php :: date format change in laravel blade 
Php :: php select option selected from database 
Php :: php group array by value and count 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =