Ver Mensaje Individual
  #11 (permalink)  
Antiguo 30/06/2009, 13:48
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 7 meses
Puntos: 416
Respuesta: ayuda con strtotime

Ah, ya vi el error. Asi quedo el codigo:

Código php:
Ver original
  1. <?php
  2.  
  3. date_default_timezone_set('America/Bogota');
  4. $fecha=date('Y-m-d H:i');
  5. $fechalista = strtotime('-1 month');
  6. $fechalista =date('Y-m-d H:i',$fechalista);
  7. print("$fecha<br />");
  8. print("$fechalista");
  9.  
  10. ?>