Hi,
First, use the oerr utility on your server to look-up your ORA-01820 error:
ORA-01820:format code cannot appear in date input format
Cause:A date specification contained an invalid format code. Only the following may be specified when entering a date: year, month, day, hours, minutes, seconds, Julian day, A.M./P.M. and B.C./A.D.
Action:Remove the invalid format code from the date specification.
**************************************
As you see, this is an invalid data format vode:
CODE
select to_date('01-jan-04','DD/MONTH/YEAR') from dual
See here for the valid date display codes:
http://www.dba-oracle.com/f_to_date.htmIn your case, I assume that you want DD/MON/YYYY
http://www.dba-oracle.com/t_ora_01820.htmRemember, your nls_date_format determines hoiw a DATE datatypes is displayed, and you can change it easily using the to_char function to whataver date format you like:
Please read:
http://www.dba-oracle.com/t_nls_date_format.htm