My issue here is I don't truly understand how variables work. I get that you create one and give it some data and it uses that in the query. My issue is with a datetime variable SQL is storing it as 2010-08-01 00:00:00 and when I give it that data in crystal or sql everything runs fine. However my application is passing the date as 08-01-2010 00:00:00 thus causing an error. How do I get this data to conform either by cast and convert or some process. Any help you can provide is greatly appreciated.