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 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:

What Ihv did is convert (VARCHAR (10), '2014-04-21 00: 00: 00.000') < / Code> and it returns 2014-04-21 , but it is now in varchar .

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, 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

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -