Hello,
I am new to Oracle. I am writing a query which requires the time portion of a date time to be in the following 24 hour format hhmm. I have the following in my query
TO_CHAR(order.orderdate, 'HH24:MI') which gives me 00:30 for 12:30 AM. If I change it to TO_CHAR(order.orderdate, 'HH24MI') I only get 30 I need it to be 0030.
I have tried CONCAT(SUBSTR(TO_CHAR(order.orderdate, 'HH24:MI'), 1, 2), SUBSTR(TO_CHAR(order.orderdate, 'HH24:MI'), 4, 2)) but that gives me the same results as above.
Does someone have a solution for this?
Thanks
Tom