Check out example codes for "sql to char function with date". It will help you in understanding the concepts better.

Code Example 1

SELECT
  TO_CHAR( sysdate, 'YYYY-MM-DD' )
FROM
  dual;

Learn ReactJs, React Native from akashmittal.com