Ver Mensaje Individual
  #4 (permalink)  
Antiguo 31/10/2008, 12:17
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Contar 3 Meses a time()

Código php:
Ver original
  1. strtotime('+3 month');

http://www.php.net/manual/en/function.strtotime.php

Entonces para calcular la fecha actual +3 meses seria:

Código php:
Ver original
  1. echo date('d-m-Y', strtotime('+3 month'));

Date cuenta que utilizo el 2do parametro de la funcion date, el cual tiene que ser el UNIX Timestamp que desees, en este caso el actual + 3 meses.