I have a Date picker field in an Apex form which has a source database column type " TIMESTAMP with TIMEZONE
The field name in the form is P3_OPENED_DATE . This field has default value CURRET_TIMESTAMP
I have another field P3_DUE_DATE for which I am trying to set the default value as 2 hours added to P3_OPENED_DATE
I tried to set the default value for P3_DUE_DATE as a PL/SQL expression :P3_OPENED_DATE+2*(1/24)
But I get an error when run the form.. Can Someone help
I tried the following SQL in Database and it worked fine, But it comes to form field reference it fails.
select To_char(opened_Date,'DD-MON-YYYY HH:MIPM') opened Date,
to_char(opened_date+2*(1/24),'DD-MON-YYYY HH:MIPM') Due Date from Basic_ticketing