I encountered a strange problem, moving from VS2015 to 2019. I've got a variable that is setup like this;
SUBSTRING( (DT_STR,50, 1256)DATEADD("DAY",0,GETDATE()) , 1, 10)
This works perfectly in VS2015 but now when I tried to add the same code in a project, it returns "Cannot convert 'System.String' to 'System.DateTime'."
Does anyone know anything about this?