﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss content posted by Additional Articles / Article Discussions / Article Discussions by Author  / Current date without the timestamp / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 14:45:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Current date without the timestamp</title><link>http://www.sqlservercentral.com/Forums/Topic404667-462-1.aspx</link><description>If you are using DATETIME,  these are better ways to get today at 00:00:00.000.  The nested DATEADD and DATEDIFF are a more efficient way to do this conversion than conversion to a character string and back again to DATETIME.[code="sql"]Select dateadd(day,datediff(day,0,current_timestamp),0) as CurrDateSelect dateadd(day,datediff(day,0,getdate()),0) as CurrDate[/code]If you are using SQL 2008 or later, then the way Joe Celko suggested will work fine if you want a DATE column.If you need a DATETIME, this also works in SQL 2008 or later:[code="sql"]select convert(datetime,convert(date,current_timestamp)) as CurrDate[/code]</description><pubDate>Fri, 29 Oct 2010 10:13:26 GMT</pubDate><dc:creator>Michael Valentine Jones</dc:creator></item><item><title>RE: Current date without the timestamp</title><link>http://www.sqlservercentral.com/Forums/Topic404667-462-1.aspx</link><description>Use the newer ANSI stuff so you get a real DATE data type and not a DATETIME:  CAST (CURRENT_TIMESTAMP AS DATE)</description><pubDate>Fri, 29 Oct 2010 09:55:14 GMT</pubDate><dc:creator>CELKO</dc:creator></item><item><title>Current date without the timestamp</title><link>http://www.sqlservercentral.com/Forums/Topic404667-462-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/31325/"&gt;Current date without the timestamp&lt;/A&gt;[/B]</description><pubDate>Sun, 30 Sep 2007 06:39:19 GMT</pubDate><dc:creator>Site Owners</dc:creator></item></channel></rss>