Feb 26, 2010 #1 bloko Programmer Feb 22, 2010 26 GB I need to group by date but the format of the date is date time so is coming out like 23/01/2009 14:05:52 I need to get rid of the time, what function can I use to delete the last 10 character?
I need to group by date but the format of the date is date time so is coming out like 23/01/2009 14:05:52 I need to get rid of the time, what function can I use to delete the last 10 character?
Feb 26, 2010 1 #2 bborissov Programmer May 3, 2005 5,167 BG Code: SELECT DATEADD(dd,0,DATEDIFF(dd,0,GETDATE())) Of course instead of GETDATE() you should use your fields from the table. Borislav Borissov VFP9 SP2, SQL Server 2000/2005. Upvote 0 Downvote
Code: SELECT DATEADD(dd,0,DATEDIFF(dd,0,GETDATE())) Of course instead of GETDATE() you should use your fields from the table. Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Feb 26, 2010 Thread starter #3 bloko Programmer Feb 22, 2010 26 GB Fantastic, just what I was after. Thanks a lot Upvote 0 Downvote