ranwilli
Member
Using a calculated field to test whether or not a dated contract is in effect.
using this php code:
oddly, I can display all three vars, and the if statement tests correctly if one or the other tests is used, but refuses to work if BOTH are tested...
Any ideas?
using this php code:
Code:
$effdate = '{authorizations_129_repeat___effective_date}';
$exdate = '{authorizations_129_repeat___ex_date}';
$today = date("Y-m-d H:i:s");
if ($today < $exdate) && ($effdate =< $today){
return '1';
} else {
return '0';
}
Any ideas?