kalpna wrote:But, it says, converting string value '02-Feb-2004' to date is unsuccessful...
What makes you think Oracle wants it in that format? Best Practice would be to standardise on an
ISO Standard Timestamp format to eliminate any date and/or timestamp handling issues with Oracle.
If you declare the datatype as Timestamp in an OCI stage, it will automatically use a TO_DATE() function when writing to Oracle and TO_CHAR() when reading. In both cases you'll either need or get a value in the following format:
If you get your date into that format, and make it consistant through the use of common date handling routines everyone leverages, you will have
zero problems with these fields in your jobs.
When working with DATE fields that have 'no time portion' (which is a misnomer, really - all dates have a time in Oracle) then simply append a zero time (:" 00:00:00") to the generated date value.