oracle-apexbind-variables

setting a datetime into global application item


Oracle APEX 24.1

enter image description here

my question: I couldn't get sysdate assigned to G_DATE as dd/mm/yyyy hh24:mi:ss

Can someone tell me what am I missing here?


Solution

  • Looks like a rounding issue. In apex, items (both application and page) do not have a datatype under the hood. They're all strings. So... try TO_CHAR(SYSDATE, 'DD/MM/YYYY HH24:MI:SS') instead.