Hey all,
I'm having a bit of a problem with my To_date Function..
Here's the Query: (In VB, with Oracle 9i backend)
INSERT INTO FN_DOCUMENT
(DOCUMENTID, BATCHID, FNDOCID, FNDOCCLASS, CURRENTSTATUS, INDEXDATETIME, LASTSTATUS)
Values
(FN_DOCUENT_ID_SEQ.NEXTVAL, 1, 117771918, 'Test_POE', 700, TO_DATE('8/15/2002 12:46:02 PM', 'MM.DD.YYYY hh24:mi:ss'), 0);
When VB hits the Query Execute I get this error:
ORA-01830: Date Format picture ends before converting entire input string.
my guess would be that Oracle doesn't like the space, from the date time stamp.. or could it be caused that the month in the string is '8' however, the To-DATE is looking for '08'?
I'm just not 100% sure.. so I thought I'd ask. =)
The PogoWolf
I'm having a bit of a problem with my To_date Function..
Here's the Query: (In VB, with Oracle 9i backend)
INSERT INTO FN_DOCUMENT
(DOCUMENTID, BATCHID, FNDOCID, FNDOCCLASS, CURRENTSTATUS, INDEXDATETIME, LASTSTATUS)
Values
(FN_DOCUENT_ID_SEQ.NEXTVAL, 1, 117771918, 'Test_POE', 700, TO_DATE('8/15/2002 12:46:02 PM', 'MM.DD.YYYY hh24:mi:ss'), 0);
When VB hits the Query Execute I get this error:
ORA-01830: Date Format picture ends before converting entire input string.
my guess would be that Oracle doesn't like the space, from the date time stamp.. or could it be caused that the month in the string is '8' however, the To-DATE is looking for '08'?
I'm just not 100% sure.. so I thought I'd ask. =)
The PogoWolf