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