Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/11/2017, 14:26
alvaro_trewhela
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: comparar fechas (ayer, hoy, manana)

Tanto hoy como a input tienes que darle strtotime.

Código PHP:
Ver original
  1. $now = strtotime(date("d-m-Y"));
  2. $input = strtotime(str_replace("/", "-", $input));

Con eso debería esta bien