I have an input column "MonthName" which has values in the following string format 22-MAY-2017 02:29:33.00
. I would like to convert this into Datetime data type in the destination table.
For that the following conversion needs to be done
22-MAY-2017 02:29:33.00
to 22-05-2017 02:29:33.00
How do i achieve this in Derived Column task.
I am using below expression to fetch the month name part of the value but i don't think it servers much of my purpose
SUBSTRING(MonthName,FINDSTRING(MonthName,"-",1) + 1,FINDSTRING(MonthName,"-",2) - FINDSTRING(MonthName,"-",1) - 1) <br/>
the above expression creates a new column with all the month names ex: may, june, july.