select TO_CHAR(to_date(sysdate, \'DD-MON-YYYY\'), \'DAY\') FROM DUAL;
When I run this query the output was : SUNDAY. But we know today is Tuesday(
use this:
select TO_CHAR(sysdate, 'DAY') FROM DUAL;
you are using this :
to_date(sysdate, 'DD-MON-YYYY')
which is giving you date=1/1/0013 which is sunday