All,
I'm sending in a date/time value as a VARCHAR2 to a stored procedure.
I need to store this value into a Date field in an Oracle table. I use this line of code to convert the string date/time using TO_DATE.
Well, the end result in the table is this.
I'm not sure what I need to do to get the date/time value to be like this.
Any suggestions?
Thanks,
Todd
I'm sending in a date/time value as a VARCHAR2 to a stored procedure.
Code:
InDeparture: 11/29/2007 08:11:00 AM
I need to store this value into a Date field in an Oracle table. I use this line of code to convert the string date/time using TO_DATE.
Code:
departure := TO_DATE(InDeparture, 'MM/DD/YYYY HH12:MI:SS AM');
Well, the end result in the table is this.
Code:
29-Nov-2007 12:00:00 AM
I'm not sure what I need to do to get the date/time value to be like this.
Code:
29-Nov-2007 8:11:00 AM
Any suggestions?
Thanks,
Todd