Date format grid and export

QuestionsDate format grid and export
Alberto asked 4 years ago

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
Abu Ghufran Staff answered 3 years ago

Closing as duplicate, thread moved on email.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

18 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?