/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function daysDifference($endDate, $beginDate) { //explode the date by "-" and storing to array //gregoriantojd() Converts a Gregorian date to Julian Day Count return $end_date - $start_date; }