[Solved] To store Unix date time

Not with the datetime element, no. You'd have to roll your own, using either a default on a field (if you just want create date), or a submission script, if you want edit stamp as well.

-- hugh
 
OK thanks, I can do it indeed, in a Default value (Eval) like this:
Code:
return time() ;

And in SQL (in a form plugin) like this:
Code:
UNIX_TIMESTAMP()

Thank you
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top