Home Forums SQL Server 7,2000 T-SQL 3 month data count comparison RE: 3 month data count comparison
Michael_Garrison
Hall of Fame
Points: 3110
More actions
September 8, 2014 at 11:34 am
#1743931
Also, if you are looking to dates to start at 12:00:00 AM, for the times you will need to use the convert and cast date/time styles. Ex. select CONVERT(varchar(10),DATEADD(MM,-1,GETDATE()-DATEPART(dd,GETDATE())+1),101)