oracle get day of month from date code example
Example 1: oracle extract year from current date
SELECT extract(YEAR FROM sysdate) FROM dual; // number
SELECT to_char(sysdate, 'YYYY') FROM dual; // varchar
Example 2: oracle sql day of month from date
select extract(day from systimestamp) from dual;