I´ve a little problem. I have an form with an datefield.
Before I send the datas to the database, I wanna check, if it is a expired date.
I can´t figured it out, how to check the date. I´ve tried: if($this->Datum < NOW() and if($this['Datum'] < NOW()) in the onBeforeWrite-function:
No, that doesn´t work. I get this error: Fatal error: Call to a member function InPast() on a non-object
Apparently the InPast-Function could only used in the frontend like this:
<% if $Date.InPast %>
<% end_if %>