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.
First, formatting should be done by the interface, not the server!Second, you are converting the date to varchar(), and then converting it back to datetime when you send it as a parameter to DATEADD(), and then converting it back to string when you send it as a parameter to LEFT().Try this:select CONVERT(char(5), DATEADD(day, 1, getdate()), 110)You may need to use a different format than 110, but I don't have the options in front of me right now...