Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/07/2010, 14:40
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 7 meses
Puntos: 334
Respuesta: operaciones con clase DATETIME

si tienes una fecha en la db
Código PHP:
Ver original
  1. $fecha = $row["fecha"];
  2. echo date("Y-m-d H:i:s", strtotime("$fecha +5 days"));

si quieres la fecha actual
Código PHP:
Ver original
  1. echo date("Y-m-d H:i:s", strtotime("+5 days"));

saludos!
__________________
More about me...
~ @rhyudek1
~ Github