I have this code
$col = array();
$col[“title”] = “ARRIVAL DATE”;
$col[“name”] = “FS_ARRIVAL_DATE”;
$col[“formatter”] = “date”;
$col[“formatoptions”] = array(“srcformat” => “Y-m-d”, “newformat” => “d/m/Y”); // Ajusta según tu necesidad
$col[“searchoptions”] = array(
“sopt” => array(“eq”), // Tipos de búsqueda permitidos, aquí solo “equals”
“dataInit” => “function(elem) { $(elem).datepicker({dateFormat: ‘d/m/Y’}); }”
); // Configura el filtro con un datepicker correctamente
$col[“width”] = “80”;
$col[“editable”] = false;
$cols[] = $col;
an I try to filter this an it trhown me white fields.
Now with this code
$col = array();
$col[“title”] = “ARRIVAL DATE”;
$col[“name”] = “FS_ARRIVAL_DATE”;
$col[“formatter”] = “date”; // Formatear como fecha
$col[“formatoptions”] = array(“srcformat” => “Y-m-d”, “newformat” => “d/m/Y”); // Mostrar formato día/mes/año
$col[“width”] = “80”;
$col[“editable”] = false;
$cols[] = $col;
it is the same.