<?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/"
		>
<channel>
	<title>Comments on: Combining Date and Time in SQL Server</title>
	<atom:link href="http://www.mindgravy.net/2009/03/05/combining-date-and-time-in-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mindgravy.net/2009/03/05/combining-date-and-time-in-sql-server/</link>
	<description>Slather Your Mind</description>
	<lastBuildDate>Fri, 28 May 2010 04:00:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: AW</title>
		<link>http://www.mindgravy.net/2009/03/05/combining-date-and-time-in-sql-server/comment-page-1/#comment-258</link>
		<dc:creator>AW</dc:creator>
		<pubDate>Mon, 28 Sep 2009 18:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindgravy.net/index.php/2009/03/05/combining-date-and-time-in-sql-server/#comment-258</guid>
		<description>I think Marc meant to write, DATEADD(ms, DATEDIFF(ms, 0, @dtTime), @dtDate)


DECLARE @dtDate DATETIME
DECLARE @dtTime DATETIME

SET @dtDate = &#039;2009-09-29 00:00:00.000&#039;
SET @dtTime = &#039;1900-01-01 14:39:32.237&#039;

SELECT DATEADD(ms, DATEDIFF(ms, 0, @dtTime), @dtDate)</description>
		<content:encoded><![CDATA[<p>I think Marc meant to write, DATEADD(ms, DATEDIFF(ms, 0, @dtTime), @dtDate)</p>
<p>DECLARE @dtDate DATETIME<br />
DECLARE @dtTime DATETIME</p>
<p>SET @dtDate = &#8217;2009-09-29 00:00:00.000&#8242;<br />
SET @dtTime = &#8217;1900-01-01 14:39:32.237&#8242;</p>
<p>SELECT DATEADD(ms, DATEDIFF(ms, 0, @dtTime), @dtDate)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.mindgravy.net/2009/03/05/combining-date-and-time-in-sql-server/comment-page-1/#comment-146</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 07 Mar 2009 23:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindgravy.net/index.php/2009/03/05/combining-date-and-time-in-sql-server/#comment-146</guid>
		<description>Marc,

When I run this on a my data (2 datetime columns), I get the following error:

&lt;code&gt;Argument data type datetime is invalid for argument 2 of dateadd function.&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Marc,</p>
<p>When I run this on a my data (2 datetime columns), I get the following error:</p>
<p><code>Argument data type datetime is invalid for argument 2 of dateadd function.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Brooks</title>
		<link>http://www.mindgravy.net/2009/03/05/combining-date-and-time-in-sql-server/comment-page-1/#comment-145</link>
		<dc:creator>Marc Brooks</dc:creator>
		<pubDate>Fri, 06 Mar 2009 07:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindgravy.net/index.php/2009/03/05/combining-date-and-time-in-sql-server/#comment-145</guid>
		<description>Why not RETURN DATEADD(ms, @dtDate, DATEDIFF(ms, 0, @dtTime))</description>
		<content:encoded><![CDATA[<p>Why not RETURN DATEADD(ms, @dtDate, DATEDIFF(ms, 0, @dtTime))</p>
]]></content:encoded>
	</item>
</channel>
</rss>
