Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Store Date Time with Oracle Apex

There is a hidden field as last_updated_date in my Oracle Apex application form. I have set SYSDATE as default value of that field. After adding data, I'v checked database table and data in last_updated_date column is show as 15-JUN-12 00:00:00. Time is not saved.

How could I save both date and time?

like image 209
Bishan Avatar asked Jan 17 '23 09:01

Bishan


1 Answers

In the hidden item's properties set:

  • Source Format Mask to DD-MON-YYYY HH24:MI:SS
  • Default Value to TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS')
  • Default Value Type to PL/SQL Expression
like image 77
Tony Andrews Avatar answered Jan 24 '23 13:01

Tony Andrews