Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/12/2012, 14:34
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: restar Fechas

En lugar de restarlas como texto, resta directamente los timestamps:
Código PHP:
Ver original
  1. $diferencia = strtotime($FechaVencimiento) - strtotime($FechaEFact);
Ahí solo te faltará convertirlo a días.
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.