/ Published in: PHP
URL: http://www.klovera.com/php-subtract-dates/
// example $from = '2011-1-6'; $to = '2011-1-8'; dateDiff($from,$to); // returns 2
Expand |
Embed | Plain Text
function dateDiff($beginDate, $endDate) { return $end_date - $start_date; }
You need to login to post a comment.
