oracle8.1.6 select to_char(sysdate, 'YYYY-MM-DD') from dual select to_char(sysdate, 'HH24:MI:SS') from dual