Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/07/2008, 10:32
Avatar de eft0
eft0
 
Fecha de Ingreso: junio-2003
Ubicación: Santiago - Chile
Mensajes: 635
Antigüedad: 20 años, 10 meses
Puntos: 9
Respuesta: semanas y dias trascurridas entre 2 fechas

http://php.net/date

Código PHP:
<?php
function getdays($day1,$day2)
{
  return 
round((strtotime($day2)-strtotime($day1))/(24*60*60),0);
}

$begin date("Y/m/d"); // we set today as an example
$end "2006/11/27";
getdays($begin,$end);
?>
__________________
eft0's stuff! - http://estebanfernandez.net