oracle date format example to_char Example: sql to char function with date SELECT TO_CHAR( sysdate, 'YYYY-MM-DD' ) FROM dual;