select date part only in sql server -
I'm trying to get a date part of the date column to compare two dates, Could not get the part, I tried it What Ihv did is Is there a way that I can only get in the date type in SQL Server 2005? Thanks in advance. Is there any way that I can only get it in SQL in the part of the server 2005. No, convert (date, detet ()) but it does not work with SQL Server 2005 because we are using it, and when I tried it < Code> DATEADD (dd, 0, DATEDIFF (dd, 0, gatetet ())) gives it to
2008-09-22 00: 00: 00.000 where I get the time of time Not only should the date part, i.e. 00, taken from both the posts:
convert (VARCHAR (10), '2014-04-21 00: 00: 00.000') < / Code> and it returns
2014-04-21 , but it is now in
varchar .
date was added in Datatype SQL Server 2008. The best you can do is to use one time from time to time with
00:00:00 .
Comments
Post a Comment