Answers for "oracle sql format date without time"

SQL
2

oracle current date without time

SELECT trunc(sysdate) FROM dual;		-- returns a DATE  01/12/2021 00:00:00
SELECT to_char(sysdate, 'DD/MM/YYYY') FROM dual; -- returns a string '01/12/2021'
Posted by: Guest on May-08-2021
0

oracle default date format

SELECT
  TO_DATE( '24-JUL-21', 'DD-MON-RR' )
FROM
  dual;
Posted by: Guest on March-15-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language