<?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: Removing the Time from SQL SERVER datetime</title>
	<atom:link href="http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/</link>
	<description>geekfreak's chronosynclastic infundibula</description>
	<lastBuildDate>Tue, 03 Nov 2009 14:53:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: How to format datetime &#38; date in Sql Server 2005 &#171; Neven Palčec &#8211; Blog</title>
		<link>http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1611</link>
		<dc:creator>How to format datetime &#38; date in Sql Server 2005 &#171; Neven Palčec &#8211; Blog</dc:creator>
		<pubDate>Tue, 03 Nov 2009 14:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1611</guid>
		<description>[...] Removing the Time from SQL SERVER datetime [...]</description>
		<content:encoded><![CDATA[<p>[...] Removing the Time from SQL SERVER datetime [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLSimon</title>
		<link>http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1610</link>
		<dc:creator>SQLSimon</dc:creator>
		<pubDate>Wed, 14 Oct 2009 07:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1610</guid>
		<description>In the code:
RETURN CAST( FLOOR( CAST( @d AS INTEGER) ) AS DATETIME )

As you&#039;re converting to INTEGER, I don&#039;t understand the need for the FLOOR function.  Why not just:

RETURN CAST( CAST( @d AS INTEGER) AS DATETIME ) ?

And I don&#039;t understand Groucho&#039;s comment about it needing to be a float.</description>
		<content:encoded><![CDATA[<p>In the code:<br />
RETURN CAST( FLOOR( CAST( @d AS INTEGER) ) AS DATETIME )</p>
<p>As you&#8217;re converting to INTEGER, I don&#8217;t understand the need for the FLOOR function.  Why not just:</p>
<p>RETURN CAST( CAST( @d AS INTEGER) AS DATETIME ) ?</p>
<p>And I don&#8217;t understand Groucho&#8217;s comment about it needing to be a float.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Groucho</title>
		<link>http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1600</link>
		<dc:creator>Groucho</dc:creator>
		<pubDate>Fri, 06 Mar 2009 11:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1600</guid>
		<description>The initial cast should be a cast to float:

RETURN CAST( FLOOR( CAST( @d AS FLOAT) ) AS DATETIME )

Otherwise the time fraction will cause a round up to the next full day.</description>
		<content:encoded><![CDATA[<p>The initial cast should be a cast to float:</p>
<p>RETURN CAST( FLOOR( CAST( @d AS FLOAT) ) AS DATETIME )</p>
<p>Otherwise the time fraction will cause a round up to the next full day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pallavi</title>
		<link>http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1595</link>
		<dc:creator>pallavi</dc:creator>
		<pubDate>Thu, 21 Aug 2008 05:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://geekfreak.wordpress.com/2007/04/25/removing-the-time-from-sql-server-datetime-2/#comment-1595</guid>
		<description>convert(varchar(20),getdate(),108)</description>
		<content:encoded><![CDATA[<p>convert(varchar(20),getdate(),108)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
