how to insert today date automatically

Questionshow to insert today date automatically
Patrick Chevalier asked 1 week ago
2 Answers
Cedric answered 1 week ago

Bonjour Patrick,

I think you can use something like this

$col = array();
$col[“title”] = “Start Date”;
$col[“name”] = “Start_Date”;
$col[“width”] = “8”;
$col[“sortable”] = true; // false this column is not sortable
$col[“search”] = true; // false this column is not searchable
$col[“editable”] = true;
$col[“formatter”] = “date”;
$col[“editoptions”][“defaultValue”] = date(“m/d/Y”);
$cols[] = $col;

Patrick Chevalier answered 1 week ago

Thank you for your replay. I have yet done exactly that, but that does not run: after an add, I can just find a \’NULL\’ in the database, not the date. Regards Patrick

Your Answer

9 + 1 =

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?