How do you calculate a date value in a stored procedure? This:
CStr(DateAdd("m", -6, Date))
Is the line in the original code and I am wondering if rather than pass the value to the stored procedure if I can calculate that value in the stored procedure but not sure how to do it?
If you are talking SQL Server then it has a dateadd function:
To duplicate your ASP Code it would look something like: DATEADD(“m”,-6,GETDATE())
Here’s the list of SQL Server Date Functions:
http://msdn.microsoft.com/en-us/library/ms186724.aspx