Question : Excluding the milliseconds from a returned date

I am returning rows in a selct which I want to group on dd/mm/yy hh:mm:ss, however the date is presented with millisecs as well. I can't see a function which will allow me to return just the date, with hours, minutes and secs. Datepart and convert don't appear to do this. I am using SQL 2008

Answer : Excluding the milliseconds from a returned date

Hi,

   Func is the function name
  It will take 2 parameters. 1. string value, 2. integer value

It is like GetFirstName('abc def',3) = abc

Random Solutions  
 
programming4us programming4us