Date Formatoptions problem

QuestionsDate Formatoptions problem
Alberto asked 4 weeks ago

I have a date column in a grid:


$cold = array();
$cold[“title”] = “FechaFactura”;
$cold[“name”] = “fecha”;
$cold[“width”] = “9”;
$cold[“editable”] = true;
$cold[“formatter”] = “date”;
//$cold[“formatoptions”] = array(“srcformat”=>’Y-m-d’,”newformat”=>’d/m/Y’);
$cols[] = $cold;

If I uncomment de line

//$cold[“formatoptions”] = array(“srcformat”=>’Y-m-d’,”newformat”=>’d/m/Y’);

It doesn’t works. Edit form doesn’t close and it shows a red stripe at the top of the form. With commented line, it close, but the date doesn’t appear in the format I want.

3 Answers
Abu answered 4 weeks ago

Please share the code for review.

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

Alberto answered 3 weeks ago
Alberto answered 2 weeks ago

Can I solve it??



Your Answer

13 + 15 =

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?