Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/02/2012, 07:36
esunestudio
 
Fecha de Ingreso: enero-2009
Mensajes: 434
Antigüedad: 15 años, 4 meses
Puntos: 5
Respuesta: Problema con Funcion de sumar fechas

Código PHP:
function dateadd($date$dd=0$mm=0$yy=0){ 

$fecha explode("/"$date);

$dia $fecha[0]+$dd;
$mes $fecha[1]+$mm;
$year $fecha[2]+$yy;

return 
$result $dia."/".$mes."/".$year;



$hola dateadd('10/05/2012',0,2,0); 
echo 
$hola
Facil y sencillo