you can try the following:
SELECT TO_CHAR(yourval, 'DD-MON-YYYY HH:MI:SS') FROM yourtable; SELECT TO_CHAR(yourval, 'HH:MI:SS') FROM yourtable;
Edit: as @steven pointed out to use the style for 24 hours
SELECT TO_CHAR(yourval, 'HH24:MI:SS') FROM yourtable;
Amirshk
source share