Hi everyone,
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:
function onBeforeWrite(){
...
if($this['Datum'] < NOW()){
$form->setErrorMessage("Fail!","Date");
}
parent::onBeforeWrite();
}
Does anyone know, how to check the date?