Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
Hello,I would like to attribute a value to a field depending on datediff of two dates. However I get cal to undefined function. How to use datediff() in events?for ex.if (datediff(date2,date1)>100)$data['c']=1else$data['c']=0
Vitas,there is no datadiff PHP function.Use strtotime function to find Unix time stamp and calculate difference between these time stamps.