[Insert record]how to set expiry date field {NOW_DT}+31days?
Posted: 2012-09-18 22:30
Hi all,
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:
and then added this variable in the insert transaction:
But it doesn't work.
Any suggestion will be really appreciated.
TIA
tony
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