I have an csv file with date column in the following format mm/dd/yyyy, i need to convert that date column to the following format yyyy-mm-dd HH:mm:ss, before loading it into oledb destination. i have used derived column transformation for this purpose and tried out the following expression
(DT_DATE)("20" + SUBSTRING(ReceivedDateTime,1,2) + "-" + SUBSTRING(ReceivedDateTime,3,2) + "-" + SUBSTRING(ReceivedDateTime,5,2)) it is throwing error like unable to perform type cast.
asked Apr 21, 2012 at 02:22 PM in Default
You have wrong expression. You have mentioned, you have date in formant "mm/dd/yyy" and based on your expression you will receive below string for eg.
And the string
Correct expresstions should look like:
answered Apr 23, 2012 at 06:03 AM