Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/10/2009, 04:29
BetoML
 
Fecha de Ingreso: octubre-2009
Mensajes: 25
Antigüedad: 17 años
Puntos: 0
Respuesta: Restar meses a una fecha!!

Solucionado =D

Código PHP:
<?php

function calcularFecha($meses)
{

$resta = strtotime("-$meses month"); 
echo 
date("d-m-Y", $resta); 
$fechaAnt = date("d-m-Y", $resta);
return 
$fechaAnt;

}

?>