Hi All
I have searched for a solution to this for quite some time but have yet to find one, I'm sure it's quite a basic solution in reality.
Basically, I have an ASP reporting script which I would like to query MSSQL to grab data based on the last six months, I have coded the SQL already but I simply need to pass it a @FromDate and a @toDate for each month.
Is is possible in asp to generate these for the last 6 months.. e.g.
01-01-2007 - 01-31-2007
02-01-2007 - 02-28-2007
etc.. etc..
Thanks in advance for any help!
John