I have 2 variables in SSIS package as CurrFile of string and File_Dt of DateTime datatype. I want to extract DateTime from CurrFile and store it into File_Dt variable. For this I am using expression as below:
(DT_DBDATE) SUBSTRING( @[User::CurrFile], 21,14 )
After doing SUBSTRING the value is 20190725001614. Now, I want to store this value as DateTime in File_Dt variable. I am getting this error while doing so.
Error code 0x80020005 occurred attempting to convert from data type DT_WSTR to data type DT_DBDATE.