This topic is locked

Update int field with time of day

3/25/2011 12:08:49 PM
PHPRunner General questions
I
idefix25 author

i have a field crdate (int11) and i want do save the time of day. I need a function to convert time-of-day to unixtime and update this field.
But please send me the phprunner code for before update event:
I have tried this:

$values["crdate"]=now();

$values["crdate"] = strtotime($values["now"]);
Regards Rainer