I have an insert record form on a page.
I have a field that set an expiry date for the record.
This date should be 31 days away from today (in interakt language: {NOW_DT}+31 days).
I tried to set the date this way:
Code: Select all
$expiry_date = KT_formatDate(date("Y-m-d", time() + 60*60*24*31));
Code: Select all
$ins_files->addColumn("data_scad_fil", "DATE_TYPE", "POST", "data_scad_fil", "{GLOBALS.expiry_date}");
Any suggestion will be really appreciated.
TIA
tony