<?php
// First Date
$exp_date = date("Y-m-d",strtotime('2013-09-24 16:20:00'));
//Second Date
$del_date = date("Y-m-d",strtotime('2013-09-30 11:54:47'));
$datetime1 = date_create($exp_date);
$datetime2 = date_create($del_date);
$interval = date_diff($datetime1, $datetime2);
//Display all parameters with value
print "<pre>";
print_r($interval);
?>
No comments:
Post a Comment