Error which using TO_CHAR(TRUNC(SYSDATE),'DAY') FROM DUAL
714682Sep 21 2009 — edited Sep 21 2009Hello everyone.
I have a pl/sql procedure which contains TO_CHAR(TRUNC(SYSDATE),'DAY') FROM DUAL to capture the DAY into a variable. Now when i access this procedure from someother application(Workflow), i get the error as ORA-01841: (full) year must be between -4713 and +9999, and not be 0.
If i don't use TO_CHAR(TRUNC(SYSDATE),'DAY') and hard code the value, it doesn't throw any error.
Any ideas on this error?
Is it something to do with the NLS_DATE?
Thanks
Regards,
Pavan, K