Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
My dates are stored like yyyymmdd. I need to find the previous day for a query. My problem is, if I take the date of 20091201 and subtract 1 day I get 20091200. How do I get it to be 20091130?
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts
Posted - 2009-12-08 : 14:26:53
What is the datatype of that field?If 'int' then use..