I’ve date columns in grid:
$col = array();
$col[“title”] = “DATE”;
$col[“name”] = “v_fecha”;
$col[“width”] = “10”;
$col[“editable”] = true;
$col[“formatter”] = “date”;
$col[“formatoptions”] = array(“srcformat”=>’Y-m-d’,”newformat”=>’d/m/Y’);
$cols[] = $col;
Grid shows:
’10/05/2021′ (10 May 2021, correct)
but, exporting to PDF or XLS shows:
‘2021-05-10’
1 Answers
Closing as duplicate, thread moved on email.
Your Answer