function daysbetweendates($date1, $date2){ $date1 = strtotime($date1); $date2 = strtotime($date2); $days = ceil(abs($date1 - $date2)/86400); return $days; } |
GMT+8, 2024-5-20 18:45 , Processed in 0.057703 second(s), 10 queries , Xcache On.
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.