Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php DateTime comparation


<?php
$datetime1 = new DateTime('2009-10-11');
$datetime2 = new DateTime('2009-10-13');
$interval = $datetime1->diff($datetime2);
echo $interval->format('%R%a días');
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #DateTime #comparation
ADD COMMENT
Topic
Name
8+9 =