Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get number of days between two dates php

$now = time(); // or your date as well
$your_date = strtotime("2010-01-31");
$datediff = $now - $your_date;

echo round($datediff / (60 * 60 * 24));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #days #dates #php
ADD COMMENT
Topic
Name
3+9 =