Formato fecha

This commit is contained in:
2024-04-10 14:51:14 -06:00
parent 00871d6093
commit 654c377292

View File

@@ -79,9 +79,11 @@ $fecha_clase = $solicitud_rs["fecha_clase"];
$hora_clase = $solicitud_rs["horario_hora"];
$duracion_tiempo = $solicitud_rs["duracion_interval"];
echo $fecha_nueva;
if(!empty($fecha_nueva)){
$dia_new = date('w', strtotime($fecha_nueva));
$fecha_nueva = DateTime::createFromFormat('d/m/Y', $fecha_nueva)->format('Y-m-d')." ".$hora;
$fecha_nueva = DateTime::createFromFormat('d/m/Y', $fecha_nueva)->format('Y-m-d')." ".$hora_nueva;
$fecha_nueva_new = date("Y-m-d", strtotime($fecha_nueva))." ".$duracion_tiempo;
}