SQL para char função com data
SELECT
TO_CHAR( sysdate, 'YYYY-MM-DD' )
FROM
dual;
True Blue
SELECT
TO_CHAR( sysdate, 'YYYY-MM-DD' )
FROM
dual;