Insert date/time value into a DATE field (error ORA-01843: not a valid month) [message #371942] |
Tue, 26 December 2000 03:38 |
Elois
Messages: 2 Registered: December 2000
|
Junior Member |
|
|
I'm trying to format the date beginning with year, mth, day, and time and insert into oracle7 table. I'm trying to use only digits for the date and time, removing any hephens or colons if possible.
However, I keep encountering the error ORA-01843: not a valid month.
Below are two of severals I tired using. Is there anything wrong in the followings?
What is the accepted date format for oracle7 ?
1) fldDateA="2000/12/26:13:10:03"
"TO_DATE('" & fldDateA & "', 'YYYY/MM/DD:HH24:MI:SS')"
2) fldDateB="2000-Dec-26 23:10:03"
"TO_DATE('" & fldDateB & "', 'YYYY-MON-DD HH24:MI:SS')"
Pls help. Thanks!
|
|
|
|
|
|