I have an ADO.NET Source in my SSIS package, and im trying to make the following query:
“SELECT * FROM Table WHERE DateAdded > ‘@[User::InputDateV]'”
For other hand i have a DateTime variable called InputDateV.
My issue is that in the variable value i can use the following date: 24/10/2012 but my Sql server this date is not valid and should be 10/24/2012.
How i can i change the datetime format of my variable to be (mm/dd/yyyy)?
Thanks.
Regards.
Jose.
The safest bet is to convert your DateTime variable into the ISO date format:
This evaluates to ‘20121024’ and as such is a perfect, unambiguous date string for SQL Server.