Okay, so. I’ve got a database which has a column of timestamps. The start of the “day” is 7am. So, say for today, it would start at 0700 on 6/25/12, and end at 0700 on 6/26/12. I’m needing to do calculations within that 24 hour time span. Now, I’m thinking of doing a query that gets all information starting at 0700 + 24 hours, but I’m not 100% on how to phrase said query. Thanks for any and all help.
Share
Caveat – code done from the top of my head, without Visual Studio, and without proper error handling, but this should show you how to set the necessary parameter values correctly, using a parameterized query. This may contain syntax errors, but again, it should show you enough to get you going. I added comments to explain the relevant code.