<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Date literal bigotry </title><link>http://msmvps.com/blogs/bill/archive/2004/07/08/9733.aspx</link><description>In VB6, if I declared a variable as a Date, I could then assign a literal to it such as : Dim dt as Date dt = #30 Jun 2004# The IDE would change that to #6/30/2004#. This was always a bit of an annoyance, and you could tell it was American based, not</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Date literal bigotry </title><link>http://msmvps.com/blogs/bill/archive/2004/07/08/9733.aspx#9798</link><pubDate>Fri, 09 Jul 2004 06:09:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:9798</guid><dc:creator>bill</dc:creator><description>Maybe something like VFP has: {^yyyymmdd} translates to the currently specified date format in the application.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=9798" width="1" height="1"&gt;</description></item><item><title>re: Date literal bigotry </title><link>http://msmvps.com/blogs/bill/archive/2004/07/08/9733.aspx#9793</link><pubDate>Fri, 09 Jul 2004 03:56:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:9793</guid><dc:creator>bill</dc:creator><description>Hey Greg,&lt;br&gt;&lt;br&gt;Yeh, IsDate does have some wierd behaviour.  It is localized, but it also assumes that if a date has the form of x/y/z then if:&lt;br&gt;(x &amp;gt; 12 AndAlso y &amp;lt;= 12) OrElse  (y &amp;gt; 12 AndAlso x &amp;lt;=12)&lt;br&gt;then it's potentially a date.&lt;br&gt;That is, if you enter in 12/30/2004 it will be interpreted as 30 Dec, 2004 where ever you are. CDate does the same.&lt;br&gt;&lt;br&gt;The good news is in Whidbey, the DateTime Structure has a TryParse method, so I would recommend using that  ;)  Tat will also let you control which culture is used.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=9793" width="1" height="1"&gt;</description></item><item><title>re: Date literal bigotry </title><link>http://msmvps.com/blogs/bill/archive/2004/07/08/9733.aspx#9787</link><pubDate>Fri, 09 Jul 2004 01:35:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:9787</guid><dc:creator>bill</dc:creator><description>Hi Bill,&lt;br&gt;&lt;br&gt;&amp;lt;resisting urge to make big date processing whinge&amp;gt;&lt;br&gt;&lt;br&gt;While they're at it, they need to take a long hard look at functions like IsDate(). Either 27/12/04 is a date or 12/27/04 is a date. They're not both dates. I came across someone the other day who'd loaded 60 million rows into a database table, thought they were in US format, they were in Oz format. DTS (which uses the VBA functions) just loaded the lot without a whinge. Bit of a pity that 2/3 of them had the month and day reversed though. Bigger pity that it was only noticed 3 days into production when people started saying &amp;quot;that's not when that happened&amp;quot;. Try to fix it then after days of real production...&lt;br&gt;&lt;br&gt;Compare that to an error at row 3 of the load. I'll take the latter every time.&lt;br&gt;&lt;br&gt;&amp;lt;/resisting urge to make big date processing whinge&amp;gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;Greg&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=9787" width="1" height="1"&gt;</description></item><item><title>U.S.-centric dates and localized languages</title><link>http://msmvps.com/blogs/bill/archive/2004/07/08/9733.aspx#9826</link><pubDate>Thu, 08 Jul 2004 22:37:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:9826</guid><dc:creator>TrackBack</dc:creator><description>Je ne parle pas Francais.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=9826" width="1" height="1"&gt;</description></item></channel></rss>