date fields get set to 0000-00-00 when I edit another field in the record

Questionsdate fields get set to 0000-00-00 when I edit another field in the record
santosh asked 7 years ago

Hi,

My date fields get set to 0000-00-00 when I edit another field in the record.
I am double clicking to edit another field.
How can I avoid this? I want my date fields to remain null

Thanks

1 Answers
santosh answered 7 years ago

problem solved 🙂

$col["formatter"] = "date";
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d/m/Y');

Your Answer

14 + 5 =

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?