Revision: 19233
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 19, 2009 05:53 by sendoa
Initial Code
function dateDifference($d1, $d2){ $v1 = explode("-", $d1); $date1 = mktime(0, 0, 0, intval($v1[1]), intval($v1[0]), intval($v1[2])); $v2 = explode("-", $d2); $date2 = mktime(0, 0, 0, intval($v2[1]), intval($v2[0]), intval($v2[2])); $dateDiff = $date2 - $date1; return floor($dateDiff/(60*60*24)); }
Initial URL
http://blog.oridoki.com/2009/10/08/php-diferencia-entre-dos-fechas/
Initial Description
Initial Title
Número de dÃas entre dos fechas
Initial Tags
Initial Language
PHP