Comparar 2 fechas en PHP
Código para comparar 2 fechas
Copy this code and paste it in your HTML
$fecha_entrada = strtotime("19-11-2008 21:00:00"); if($fecha_actual > $fecha_entrada){
echo "La fecha entrada ya ha pasado";
}else{
echo "Aun falta algun tiempo";
}
Report this snippet
Comments
Subscribe to comments