<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx</link><description>[This post is part of a series, " wish-list for future versions of VB "] 
 
 IDEA: Allow date literals in a subset of ISO8601 format , e.g. #2010-01-26# or #2010-01-26T21:16Z#. (Currently VB only allows the US-specific form #MM/dd/yyyy#). Pretty-listing</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#10162473</link><pubDate>Mon, 09 May 2011 14:11:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10162473</guid><dc:creator>Jer0enH</dc:creator><description>&lt;p&gt;I disagree that this is only rarely used. Of course you don&amp;#39;t use hard-coded dates in most production code, but as others have said it&amp;#39;s quite common in test code!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10162473" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9970028</link><pubDate>Fri, 26 Feb 2010 17:27:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9970028</guid><dc:creator>Krzysztof Maczyński</dc:creator><description>&lt;p&gt;Months in the middle. The US format isn't naturally sortable. That results in perceived weirdness by others.&lt;/p&gt;
&lt;p&gt;Wasn't VB up to 6 more liberal about what you pot between the #s?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9970028" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9969185</link><pubDate>Thu, 25 Feb 2010 11:15:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9969185</guid><dc:creator>Richard</dc:creator><description>&lt;p&gt;I too think there should be a single format (namely ISO's #yyyy-mm-dd#) to which old-style dates should be auto-corrected.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9969185" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9966144</link><pubDate>Fri, 19 Feb 2010 03:15:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9966144</guid><dc:creator>Kyralessa</dc:creator><description>&lt;p&gt;I like the idea OK. &amp;nbsp;What about autocorrecting &amp;quot;old format&amp;quot; dates into &amp;quot;new format&amp;quot; ones? &amp;nbsp;So if you put in #5/4/2008# (in the US), when you moved off the line it would correct to #2008-05-04#.&lt;/p&gt;
&lt;p&gt;I agree with those who say it's not a huge priority, though; obviously with the DateTime class there's already a way to do this sort of thing.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9966144" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9965910</link><pubDate>Thu, 18 Feb 2010 19:00:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9965910</guid><dc:creator>Héctor</dc:creator><description>&lt;p&gt;Also found this to be a pain in the past, however, I agree that it is not a common scenario, so it should be considered, but as a low priority.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9965910" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9964032</link><pubDate>Tue, 16 Feb 2010 03:55:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9964032</guid><dc:creator>Kevin Ryall</dc:creator><description>&lt;p&gt;This is a persistent annoyance for us non-US programmers (although to be fair, VB is far from alone in assuming that the US locale is the only one that counts). I don’t want to use our European date format either – if we could use an ambiguous format like ISO 8601 that would be perfect.&lt;/p&gt;
&lt;p&gt;While I very rarely have embedded date literals in production code, I have them very frequently in test code – and it’s a real pain to have to use US date formats (timespan constructors aren’t as readable as native date literals would be).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9964032" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9963751</link><pubDate>Mon, 15 Feb 2010 18:11:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963751</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;@Đonny: The ISO format is definately less confusing, since all standard time formats that start with the year and use &amp;quot;-&amp;quot; as seperators iterate from the largest to the lowest value. (yyyy-MM-dd HH:mm:ss) It is the only time format that really is obvious.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963751" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9963494</link><pubDate>Mon, 15 Feb 2010 09:56:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963494</guid><dc:creator>MarkJ</dc:creator><description>&lt;p&gt;Yes please, we have good reasons to have a few hardcoded dates in our programs, and this is a pain. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963494" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9963454</link><pubDate>Mon, 15 Feb 2010 07:41:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963454</guid><dc:creator>Đonny</dc:creator><description>&lt;p&gt;I'd really more appretiate TimeSpan literals than change in DateTime literals. Hardcoding dates into program is IMO more rare than hardcoding of times - and there's no confusion about TimeSpan formating internationally.&lt;/p&gt;
&lt;p&gt;IMO ISO format is not less confusing than US one. Is it YYYY-dd-MM or YYYY-MM-dd?&lt;/p&gt;
&lt;p&gt;(Somebody from Czech Republic - native date format d.M. YYYY H:mm:ss)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963454" width="1" height="1"&gt;</description></item><item><title>re: Req11: International date literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/14/req11-international-date-literals.aspx#9963421</link><pubDate>Mon, 15 Feb 2010 04:20:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963421</guid><dc:creator>Jonathan Allen</dc:creator><description>&lt;p&gt;Timespan literals would be very, very helpful for constants and optional parameters. &lt;/p&gt;
&lt;p&gt;What I thinkwe really need is a generalized way to define literals for value types for use in constants and optional parameters.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963421" width="1" height="1"&gt;</description></item></channel></rss>