Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Diferencia entre dias PHP - Con date_diff()

<?php
  
  // Creates DateTime objects
  $datetime1 = date_create('17-09-2018');
  $datetime2 = date_create('25-09-2018');
  
  // Calculates the difference between DateTime objects
  $interval = date_diff($datetime1, $datetime2);
  
  // Display the result
  echo $interval->format('Difference between two dates: %R%a days');
?>
Comment

PREVIOUS NEXT
Code Example
Php :: asin() php 
Php :: inverse hyperbolic cosine php 
Php :: php error handling 
Php :: set cookie on button click php or js 
Php :: php get multiple url parameters 
Php :: how to manually remove cache in laravel 
Php :: global variable in laravel controller 
Php :: laravel generate unique string 
Php :: laravel composer create project 
Php :: how to get the size of an uploaded file in laravel 
Php :: php one line if without else 
Php :: where is in array laravel 
Php :: Laravel - Add conditional where clause in query 
Php :: php get duplicate keys in array without using inbuilt function 
Php :: resize image using intervention laravel and save 
Php :: error laravel 404 in server 
Php :: search query codeigniter 
Php :: new order email filter woocommerce 
Php :: php function to minify javascript and css 
Php :: codeigniter 3 image upload 
Php :: php input onchange 
Php :: Simple factory Design pattern in PHP 
Php :: show phpinfo just modules 
Php :: wordpress highlight text excerpt 
Php :: codeigniter 4 radio button isset 
Php :: put the date from new york with php 
Php :: laravel get url parameter value in controller 
Php :: get last name user 
Php :: get custom field post wordpress dev 
Php :: wordpress change email new user template 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =