<?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: T-SQL Tuesday #001 &#8211; Dates and Time</title>
	<atom:link href="http://www.straightpathsql.com/archives/2009/12/t-sql-tuesday-001-dates-and-time/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.straightpathsql.com/archives/2009/12/t-sql-tuesday-001-dates-and-time/</link>
	<description>Mike Walsh&#039;s Thoughts on SQL Server, Professional Development and Life</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:02:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Mike Walsh</title>
		<link>http://www.straightpathsql.com/archives/2009/12/t-sql-tuesday-001-dates-and-time/comment-page-1/#comment-135</link>
		<dc:creator>Mike Walsh</dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://straightpathsql.mikewalshonline.com/?p=78#comment-135</guid>
		<description>&lt;p&gt;Hey Jonathan - Isn&#039;t that funny. In a post dedicated to dates and times for a &quot;blog party&quot; (I don&#039;t know what you call it in proper Blog etiquette) all about dates/times, I messed up that simple date period logic! Thanks for the catch and I&#039;ll even leave it so folks reading the comments don&#039;t think you are strange.&lt;/p&gt;&lt;p&gt;The only problem I could see is that date format is affected by location/regional settings. Today is DEZember in Germany, for instance. If the servers language setting is US English then you are okay with someone using 10-DEC-2009 but then you run into the question of how folks input/how the apps work/etc.&lt;/p&gt;&lt;p&gt;Specifying the month name, as you suggest, eliminates much of the problem with the DD-MM-YYYY&#124;MM-DD-YYYY differences that divide the world. The ISO format (or the ODBC Canonical format) are both internationally liked and accepted regardless of code page on the server, regional or localization settings. But then there may need to be some converting/etc. &lt;/p&gt;&lt;p&gt;So while I use it as a best practice, I look at the bigger picture... Is this app international? Will It be? If it is how will local settings/regional settings and multiple data sources affect it? I try to play to the widest audience with the dates and play it safe. That being said, I have also been involved in projects where we used the format you specify or something similar.&lt;/p&gt;&lt;p&gt;The good news is that either approach is still stored as a datetime in the database so either format should have no impact on the use (or not) of an index.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Jonathan &#8211; Isn&#8217;t that funny. In a post dedicated to dates and times for a &quot;blog party&quot; (I don&#8217;t know what you call it in proper Blog etiquette) all about dates/times, I messed up that simple date period logic! Thanks for the catch and I&#8217;ll even leave it so folks reading the comments don&#8217;t think you are strange.</p>
<p>The only problem I could see is that date format is affected by location/regional settings. Today is DEZember in Germany, for instance. If the servers language setting is US English then you are okay with someone using 10-DEC-2009 but then you run into the question of how folks input/how the apps work/etc.</p>
<p>Specifying the month name, as you suggest, eliminates much of the problem with the DD-MM-YYYY|MM-DD-YYYY differences that divide the world. The ISO format (or the ODBC Canonical format) are both internationally liked and accepted regardless of code page on the server, regional or localization settings. But then there may need to be some converting/etc. </p>
<p>So while I use it as a best practice, I look at the bigger picture&#8230; Is this app international? Will It be? If it is how will local settings/regional settings and multiple data sources affect it? I try to play to the widest audience with the dates and play it safe. That being said, I have also been involved in projects where we used the format you specify or something similar.</p>
<p>The good news is that either approach is still stored as a datetime in the database so either format should have no impact on the use (or not) of an index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fatherjack</title>
		<link>http://www.straightpathsql.com/archives/2009/12/t-sql-tuesday-001-dates-and-time/comment-page-1/#comment-134</link>
		<dc:creator>Fatherjack</dc:creator>
		<pubDate>Thu, 10 Dec 2009 09:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://straightpathsql.mikewalshonline.com/?p=78#comment-134</guid>
		<description>&lt;p&gt;Ummmm, if its the 2nd Tuesday of each month doesnt that make it monthly? ;P&lt;/p&gt;&lt;p&gt;My preference when dealing with dates has been to fire them into a database in the format dd-mmm-yyyy (eg 08-Dec-2009, 12-Aug-2008) and leave the database engine decide how it wants them to be stored. Whenever I am working with developers I get them to code the applications to always display in this format and only accept user input in that format. Noone does the conversion to a &#039;digital date&#039;. &lt;/p&gt;&lt;p&gt;Does this conflict with your advice and the use of the ISO standard? I have never experienced any problems with my solution but would happily revise my ideas if it is a risk..?&lt;/p&gt;&lt;p&gt;Thanks for the post and the reminder about the Primary Keys, they so often are clustered its easy to fall in to the routine by default.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Jonathan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ummmm, if its the 2nd Tuesday of each month doesnt that make it monthly? ;P</p>
<p>My preference when dealing with dates has been to fire them into a database in the format dd-mmm-yyyy (eg 08-Dec-2009, 12-Aug-2008) and leave the database engine decide how it wants them to be stored. Whenever I am working with developers I get them to code the applications to always display in this format and only accept user input in that format. Noone does the conversion to a &#8216;digital date&#8217;. </p>
<p>Does this conflict with your advice and the use of the ISO standard? I have never experienced any problems with my solution but would happily revise my ideas if it is a risk..?</p>
<p>Thanks for the post and the reminder about the Primary Keys, they so often are clustered its easy to fall in to the routine by default.</p>
<p>Cheers</p>
<p>Jonathan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
