Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/12/2010, 20:05
omarin1
 
Fecha de Ingreso: marzo-2009
Mensajes: 22
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: Obtener la fecha anterior al dia de hoy

Si ya estoy investigando tengo algo de este modo pero no se como restar la otra fecha

Código PHP:
function dia_anterior($fecha)
{
    
$sol = (strtotime($fecha) - strtotime/* Como identifico aquí 1 dia o 24hrs? */));
    return 
date('Y-m-d'$sol);