CAmbio de formato de fechas

This commit is contained in:
2024-04-23 12:43:10 -06:00
parent 85cc7f7dfb
commit 85df22b37f

View File

@@ -44,8 +44,8 @@ if(isset($_POST["prof"]) ){
$query .= "NULL,";
}
$query .= ":f_ini, :f_fin, ";
$repoParams[":f_ini"] = $fecha_ini;
$repoParams[":f_fin"] = $fecha_fin;
$repoParams[":f_ini"] = DateTime::createFromFormat('d/m/Y', $fecha_ini)->format('Y-m-d');
$repoParams[":f_fin"] = DateTime::createFromFormat('d/m/Y', $fecha_fin)->format('Y-m-d');
$spreadsheet = new Spreadsheet();