<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Retrieve &#8211; Select Only Date Part From DateTime &#8211; Best Practice</title>
	<atom:link href="http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ash</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57712</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Wed, 18 Nov 2009 20:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57712</guid>
		<description>Can Datepart be used as part of update...set query. I am trying to update a datefield by the following statement

Update tablexx

Set Datepart(yyyy, Datefld) = 2011.

But I am getting errors.

Thanks,

Ash</description>
		<content:encoded><![CDATA[<p>Can Datepart be used as part of update&#8230;set query. I am trying to update a datefield by the following statement</p>
<p>Update tablexx</p>
<p>Set Datepart(yyyy, Datefld) = 2011.</p>
<p>But I am getting errors.</p>
<p>Thanks,</p>
<p>Ash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthik</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57694</link>
		<dc:creator>karthik</dc:creator>
		<pubDate>Wed, 18 Nov 2009 10:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57694</guid>
		<description>SELECT CONVERT(VARCHAR(10),GETDATE(),109)</description>
		<content:encoded><![CDATA[<p>SELECT CONVERT(VARCHAR(10),GETDATE(),109)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthik</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57693</link>
		<dc:creator>karthik</dc:creator>
		<pubDate>Wed, 18 Nov 2009 10:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57693</guid>
		<description>SELECT CONVERT(VARCHAR(10),GETDATE(),104)
SELECT CONVERT(VARCHAR(10),GETDATE(),105)
SELECT CONVERT(VARCHAR(10),GETDATE(),106)
SELECT CONVERT(VARCHAR(10),GETDATE(),107)</description>
		<content:encoded><![CDATA[<p>SELECT CONVERT(VARCHAR(10),GETDATE(),104)<br />
SELECT CONVERT(VARCHAR(10),GETDATE(),105)<br />
SELECT CONVERT(VARCHAR(10),GETDATE(),106)<br />
SELECT CONVERT(VARCHAR(10),GETDATE(),107)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthik</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57692</link>
		<dc:creator>karthik</dc:creator>
		<pubDate>Wed, 18 Nov 2009 10:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57692</guid>
		<description>CHANGE THE DATE FORMAT AS &#039;YYYY-MM-DD&#039;</description>
		<content:encoded><![CDATA[<p>CHANGE THE DATE FORMAT AS &#8216;YYYY-MM-DD&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Champ</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57355</link>
		<dc:creator>Champ</dc:creator>
		<pubDate>Thu, 05 Nov 2009 12:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57355</guid>
		<description>Select Convert(Varchar(15),GetDate(),108)</description>
		<content:encoded><![CDATA[<p>Select Convert(Varchar(15),GetDate(),108)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devesh</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57133</link>
		<dc:creator>Devesh</dc:creator>
		<pubDate>Thu, 29 Oct 2009 09:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-57133</guid>
		<description>Your posts always helps me lot ...thanx</description>
		<content:encoded><![CDATA[<p>Your posts always helps me lot &#8230;thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabih</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56316</link>
		<dc:creator>Rabih</dc:creator>
		<pubDate>Thu, 01 Oct 2009 11:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56316</guid>
		<description>Hir Mrs Adi

I&#039;m very very very thank for you 

you give me the good solution good work for you.

Bye

if you want send to me your Email Address. 

Bye again</description>
		<content:encoded><![CDATA[<p>Hir Mrs Adi</p>
<p>I&#8217;m very very very thank for you </p>
<p>you give me the good solution good work for you.</p>
<p>Bye</p>
<p>if you want send to me your Email Address. </p>
<p>Bye again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adi</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56311</link>
		<dc:creator>Adi</dc:creator>
		<pubDate>Thu, 01 Oct 2009 09:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56311</guid>
		<description>Rabih
it seems my select statement is not comming compleately
I did following steps.

Flow is like this :
1) arrange  ur string dd/MM/yyyy to MM/dd/yyyy
2) then convert it to Datatime 
3)  then convert that datetime to  numeric format using 112
4) Now convert ur From date and ToDate of conditon to datetime 103
5) then convert those From date and toDate to numeric format
6) and then compare using &gt;= and &lt;= condition</description>
		<content:encoded><![CDATA[<p>Rabih<br />
it seems my select statement is not comming compleately<br />
I did following steps.</p>
<p>Flow is like this :<br />
1) arrange  ur string dd/MM/yyyy to MM/dd/yyyy<br />
2) then convert it to Datatime<br />
3)  then convert that datetime to  numeric format using 112<br />
4) Now convert ur From date and ToDate of conditon to datetime 103<br />
5) then convert those From date and toDate to numeric format<br />
6) and then compare using &gt;= and &lt;= condition</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adi</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56309</link>
		<dc:creator>Adi</dc:creator>
		<pubDate>Thu, 01 Oct 2009 09:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56309</guid>
		<description>select * from #TempTable Where convert(numeric,Convert(varchar,cast((left(right(t_Date,7),2) +&#039;/&#039; + left(t_Date,2) + &#039;/&#039; + right(t_Date,4)) as datetime),112)) &gt;=convert(numeric,Convert(varchar,convert(datetime,&#039;01/03/2009&#039;,103),112)) and 
convert(numeric,Convert(varchar,cast((left(right(t_Date,7),2) +&#039;/&#039; + left(t_Date,2) + &#039;/&#039; + right(t_Date,4)) as datetime),112)) = and &lt;= condition

Hope it will give u all the results u r expecting.

Do reply.

thanks.

Regards
Adi</description>
		<content:encoded><![CDATA[<p>select * from #TempTable Where convert(numeric,Convert(varchar,cast((left(right(t_Date,7),2) +&#8217;/&#8217; + left(t_Date,2) + &#8216;/&#8217; + right(t_Date,4)) as datetime),112)) &gt;=convert(numeric,Convert(varchar,convert(datetime,&#8217;01/03/2009&#8242;,103),112)) and<br />
convert(numeric,Convert(varchar,cast((left(right(t_Date,7),2) +&#8217;/&#8217; + left(t_Date,2) + &#8216;/&#8217; + right(t_Date,4)) as datetime),112)) = and &lt;= condition</p>
<p>Hope it will give u all the results u r expecting.</p>
<p>Do reply.</p>
<p>thanks.</p>
<p>Regards<br />
Adi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adi</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56306</link>
		<dc:creator>Adi</dc:creator>
		<pubDate>Thu, 01 Oct 2009 07:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56306</guid>
		<description>Hello Rabih,

r u getting follwoing error :

&quot;The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
 while using &quot;

select * from Test_Date where t_Date&gt;=convert(datetime,’01/03/2009′,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)

statement ??


Adi</description>
		<content:encoded><![CDATA[<p>Hello Rabih,</p>
<p>r u getting follwoing error :</p>
<p>&#8220;The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.<br />
 while using &#8221;</p>
<p>select * from Test_Date where t_Date&gt;=convert(datetime,’01/03/2009′,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)</p>
<p>statement ??</p>
<p>Adi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabih</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56301</link>
		<dc:creator>Rabih</dc:creator>
		<pubDate>Thu, 01 Oct 2009 05:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56301</guid>
		<description>Hi Mr Imran Mohammed

thank for this code but not actuall get the result please i need all records between two dates your code not gell all records.
In my table
date column in my table is varchar and i&#039;m put date in my application like dd/mm/yyyy and i&#039;m writing this code 

select * from Test_Date where t_Date&gt;=convert(datetime,’01/03/2009′,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)

not get the record has date &#039;02/03/2009′ try this code and see the result please help

thanks again</description>
		<content:encoded><![CDATA[<p>Hi Mr Imran Mohammed</p>
<p>thank for this code but not actuall get the result please i need all records between two dates your code not gell all records.<br />
In my table<br />
date column in my table is varchar and i&#8217;m put date in my application like dd/mm/yyyy and i&#8217;m writing this code </p>
<p>select * from Test_Date where t_Date&gt;=convert(datetime,’01/03/2009′,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)</p>
<p>not get the record has date &#039;02/03/2009′ try this code and see the result please help</p>
<p>thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56295</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Wed, 30 Sep 2009 23:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56295</guid>
		<description>@W.Ah

Check if this could help.

Create Table #Example ( Eid Int, Ename varchar(40), JoinDate datetime )
insert into #Example Values ( 1, &#039;Imran&#039; , &#039;9/29/2009 1:00:10 AM&#039;)

Select * from #Example

Select Eid, Ename from #Example
Where convert (datetime, convert ( varchar, JoinDate, 101 )) = &#039;9/29/2009&#039;

Drop table #Example 


~ IM.</description>
		<content:encoded><![CDATA[<p>@W.Ah</p>
<p>Check if this could help.</p>
<p>Create Table #Example ( Eid Int, Ename varchar(40), JoinDate datetime )<br />
insert into #Example Values ( 1, &#8216;Imran&#8217; , &#8216;9/29/2009 1:00:10 AM&#8217;)</p>
<p>Select * from #Example</p>
<p>Select Eid, Ename from #Example<br />
Where convert (datetime, convert ( varchar, JoinDate, 101 )) = &#8216;9/29/2009&#8242;</p>
<p>Drop table #Example </p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56294</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Wed, 30 Sep 2009 23:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56294</guid>
		<description>@Rabih,

Check if this could help.

Create Table #Example ( Eid int, EmpName varchar(50), DateJoined varchar(50))

Insert into #Example values ( 1, &#039;Bill Gates&#039; , &#039;01/01/2009&#039;)
Insert into #Example values ( 2, &#039;Gustavo&#039; , &#039;01/02/2009&#039;)
Insert into #Example values ( 3, &#039;Catherine&#039; , &#039;01/03/2009&#039;)
Insert into #Example values ( 4, &#039;Kim&#039; , &#039;01/04/2009&#039;)
Insert into #Example values ( 5, &#039;Humberto&#039; , &#039;01/06/2009&#039;)
Insert into #Example values ( 6, &#039;Pilar&#039; , &#039;01/08/2009&#039;)
Insert into #Example values ( 7, &#039;Frances&#039; , &#039;01/10/2009&#039;)
Insert into #Example values ( 8, &#039;Margaret&#039; , &#039;01/12/2009&#039;)
Insert into #Example values ( 9, &#039;Carla&#039; , &#039;01/01/2010&#039;)
Insert into #Example values ( 10, &#039;Jay&#039; , &#039;01/02/2010&#039;)
Insert into #Example values ( 11, &#039;Ronald&#039; , &#039;01/03/2010&#039;)

select * from #Example 

select *
from #Example
where Convert (Datetime, DateJoined) between &#039;01/03/2009&#039; and &#039;01/01/2010&#039;

Drop table #Example 


~ IM.</description>
		<content:encoded><![CDATA[<p>@Rabih,</p>
<p>Check if this could help.</p>
<p>Create Table #Example ( Eid int, EmpName varchar(50), DateJoined varchar(50))</p>
<p>Insert into #Example values ( 1, &#8216;Bill Gates&#8217; , &#8216;01/01/2009&#8242;)<br />
Insert into #Example values ( 2, &#8216;Gustavo&#8217; , &#8216;01/02/2009&#8242;)<br />
Insert into #Example values ( 3, &#8216;Catherine&#8217; , &#8216;01/03/2009&#8242;)<br />
Insert into #Example values ( 4, &#8216;Kim&#8217; , &#8216;01/04/2009&#8242;)<br />
Insert into #Example values ( 5, &#8216;Humberto&#8217; , &#8216;01/06/2009&#8242;)<br />
Insert into #Example values ( 6, &#8216;Pilar&#8217; , &#8216;01/08/2009&#8242;)<br />
Insert into #Example values ( 7, &#8216;Frances&#8217; , &#8216;01/10/2009&#8242;)<br />
Insert into #Example values ( 8, &#8216;Margaret&#8217; , &#8216;01/12/2009&#8242;)<br />
Insert into #Example values ( 9, &#8216;Carla&#8217; , &#8216;01/01/2010&#8242;)<br />
Insert into #Example values ( 10, &#8216;Jay&#8217; , &#8216;01/02/2010&#8242;)<br />
Insert into #Example values ( 11, &#8216;Ronald&#8217; , &#8216;01/03/2010&#8242;)</p>
<p>select * from #Example </p>
<p>select *<br />
from #Example<br />
where Convert (Datetime, DateJoined) between &#8216;01/03/2009&#8242; and &#8216;01/01/2010&#8242;</p>
<p>Drop table #Example </p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabih</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56265</link>
		<dc:creator>Rabih</dc:creator>
		<pubDate>Wed, 30 Sep 2009 08:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56265</guid>
		<description>Hi Mrs  Tejas Shah thank for you

 ok your code is correct but actuall not get 

the specific result because if we put from date 

&#039;01/03/2009&#039; to date &#039;01/01/2010&#039; we cannot get the 

record  has date &#039;02/03/2009&#039; why ?

Notes: i&#039;m save date in database as dd/mm/yyyy

date column in database has datatype varchar can you help in this code or another way to get the good result.

Thank again for you</description>
		<content:encoded><![CDATA[<p>Hi Mrs  Tejas Shah thank for you</p>
<p> ok your code is correct but actuall not get </p>
<p>the specific result because if we put from date </p>
<p>&#8216;01/03/2009&#8242; to date &#8216;01/01/2010&#8242; we cannot get the </p>
<p>record  has date &#8216;02/03/2009&#8242; why ?</p>
<p>Notes: i&#8217;m save date in database as dd/mm/yyyy</p>
<p>date column in database has datatype varchar can you help in this code or another way to get the good result.</p>
<p>Thank again for you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: W.Ah</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56257</link>
		<dc:creator>W.Ah</dc:creator>
		<pubDate>Wed, 30 Sep 2009 03:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56257</guid>
		<description>I have a datetime column in database  in &#039;9/29/2009 1:00:10 AM&#039; this format. Based on this coulmn value i need to get other column value but datetime value would be in &#039;9/28/2009&#039; format.
How I can achive  following query
select * from tblFirst where Startdate=&#039;9/29/2009&#039; 
but in Database Startdate column has value as &#039;9/29/2009 1:00:10 AM&#039; 

Could you help me?
Thanks in advance</description>
		<content:encoded><![CDATA[<p>I have a datetime column in database  in &#8216;9/29/2009 1:00:10 AM&#8217; this format. Based on this coulmn value i need to get other column value but datetime value would be in &#8216;9/28/2009&#8242; format.<br />
How I can achive  following query<br />
select * from tblFirst where Startdate=&#8217;9/29/2009&#8242;<br />
but in Database Startdate column has value as &#8216;9/29/2009 1:00:10 AM&#8217; </p>
<p>Could you help me?<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tejas Shah</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56247</link>
		<dc:creator>Tejas Shah</dc:creator>
		<pubDate>Tue, 29 Sep 2009 14:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56247</guid>
		<description>Hi Rabin,

select * 
from Test_Date 
where CAST(t_Date AS DATETIME)&gt;=convert(datetime,’02/02/2009′,103) and CAST(t_Date AS DATETIME)&lt;=convert(datetime,&#039;02/02/2010&#039;,103)

let me know if it helps you.

Tejas</description>
		<content:encoded><![CDATA[<p>Hi Rabin,</p>
<p>select *<br />
from Test_Date<br />
where CAST(t_Date AS DATETIME)&gt;=convert(datetime,’02/02/2009′,103) and CAST(t_Date AS DATETIME)&lt;=convert(datetime,&#039;02/02/2010&#039;,103)</p>
<p>let me know if it helps you.</p>
<p>Tejas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabih</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56236</link>
		<dc:creator>Rabih</dc:creator>
		<pubDate>Tue, 29 Sep 2009 11:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56236</guid>
		<description>please help me i want to get data between two dates im writing ,these query act normaly but not correct data

select * from Test_Date where t_Date&gt;=convert(datetime,’02/02/2009′,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)
can not get the correct data

and the datatype of column t_Date is varchar(50)</description>
		<content:encoded><![CDATA[<p>please help me i want to get data between two dates im writing ,these query act normaly but not correct data</p>
<p>select * from Test_Date where t_Date&gt;=convert(datetime,’02/02/2009′,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)<br />
can not get the correct data</p>
<p>and the datatype of column t_Date is varchar(50)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabih</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56233</link>
		<dc:creator>Rabih</dc:creator>
		<pubDate>Tue, 29 Sep 2009 10:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-56233</guid>
		<description>please help me i want to get data between two dates im writing 

select * from Test_Date where t_Date&gt;=convert(datetime,&#039;02/02/2009&#039;,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)
can not get the correct data</description>
		<content:encoded><![CDATA[<p>please help me i want to get data between two dates im writing </p>
<p>select * from Test_Date where t_Date&gt;=convert(datetime,&#8217;02/02/2009&#8242;,103) and t_Date&lt;=convert(datetime,&#039;02/02/2010&#039;,103)<br />
can not get the correct data</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-55614</link>
		<dc:creator>Ahmed</dc:creator>
		<pubDate>Sat, 05 Sep 2009 10:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-55614</guid>
		<description>Thank you so much, but is it possible to display just time?</description>
		<content:encoded><![CDATA[<p>Thank you so much, but is it possible to display just time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nazila</title>
		<link>http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-55184</link>
		<dc:creator>Nazila</dc:creator>
		<pubDate>Tue, 25 Aug 2009 06:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/#comment-55184</guid>
		<description>It was a great help! Thanks!</description>
		<content:encoded><![CDATA[<p>It was a great help! Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
