<?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>DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx</link><description>I have recently created some new DateTime FAQ entries to address some questions people have about using DateTime on blogs. Our web site is in transition, so I'm posting some of these into the blog. However, they will eventually be rolled into the DateTime</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: More on DateTime and TimeZones</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#136929</link><pubDate>Fri, 21 May 2004 21:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:136929</guid><dc:creator>Brad Abrams </dc:creator><description /></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#136948</link><pubDate>Fri, 21 May 2004 21:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:136948</guid><dc:creator>Anthony Moore</dc:creator><description>[Anthony Moore]&lt;br&gt;&lt;br&gt;I forgot to put my name in the blog. I would be interested in any feedback on this content.</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#137487</link><pubDate>Fri, 21 May 2004 23:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:137487</guid><dc:creator>Luc Cluitmans</dc:creator><description>Quote: &amp;quot;All this being said, it may be possible to create an entirely new class that does represent an absolute point in time and does have time zone context. This may be considered for a post-Whidbey release.&amp;quot;&lt;br&gt;&lt;br&gt;Given the seriousness of the problems surrounding this whole issue, wouldn't it be better to add such a second DateTime-like struct already in Whidbey? Post-whidbey is VERY far away... What are the arguments to postpone it?</description></item><item><title>Even more on DateTime...</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#139830</link><pubDate>Sun, 23 May 2004 18:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:139830</guid><dc:creator>Brad Abrams </dc:creator><description /></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#139839</link><pubDate>Sun, 23 May 2004 19:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:139839</guid><dc:creator>Thomas Tomiczek</dc:creator><description>::If we could have seen the full implications &lt;br&gt;::of the earliest design decisions, we may &lt;br&gt;::well have begun with a UTC based DateTime &lt;br&gt;::instead.&lt;br&gt;&lt;br&gt;Interesting. Someone was sleeping here.&lt;br&gt;&lt;br&gt;You COULD have seen and SHOULD have seen this. This is a TYPICAL problem that ihas been plaguing the programmer community for a long time - and too vendors have been tremendously ignorant to this.&lt;br&gt;&lt;br&gt;Example?&lt;br&gt;&lt;br&gt;SQL - DateTime and timezone information. Added to the standard years ago, soon YUKON will be probably the first (!) database to support them.&lt;br&gt;&lt;br&gt;I myself got stuck with this about 10 years ago, and have been using things UTC ever since then.&lt;br&gt;&lt;br&gt;I can only support Luc here - put the additional classes into Whidbey. You have the time. Post-Whidbey is YEARS away.</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#140129</link><pubDate>Mon, 24 May 2004 10:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:140129</guid><dc:creator>Lee</dc:creator><description>I agree, we should have a new DateTime struct that uses UTC sooner rather than later.</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#140161</link><pubDate>Mon, 24 May 2004 12:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:140161</guid><dc:creator>Peter Ibbotson</dc:creator><description>We've been kicking around the same set of problems here. Most of the time it's not a big issue but having a &amp;quot;Date&amp;quot; type would be useful sometimes. Birthday is a classic example, how do you represent this in a database if the system has timezones on different days during use? You can do this by storing midnight UTC and using context to say if timezone is significant (e.g. it's not on a birthday) but it does stink slightly.&lt;br&gt;</description></item><item><title>DateTime: More DateTime best practices</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#140332</link><pubDate>Mon, 24 May 2004 18:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:140332</guid><dc:creator>Ken Brubaker</dc:creator><description>Brad Abrams leads us to a new BCL Blog posting on DateTime by Anthony Moore.</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#142354</link><pubDate>Wed, 26 May 2004 18:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:142354</guid><dc:creator>Keith Hill</dc:creator><description>Considering the complexity of getting the correct behavior from DateTime (yikes), it does seem like you should seriously consider adding a DateTime2 (or DateUniversalTime or UniversalDateTime or DateTimeUtc) to the Whidbey release.</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#144000</link><pubDate>Fri, 28 May 2004 21:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:144000</guid><dc:creator>Kit George {MSFT]</dc:creator><description>Yup, it is something we will have to think through carefully, but we are interested in ensuring that all of the applicable scenarios for DateTimes are supported Keith: We'll keep you all posted when we have more details on where we plan to head.</description></item><item><title>Why Not Add a New DateTime Date Type in Whidbey?</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#145488</link><pubDate>Tue, 01 Jun 2004 18:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145488</guid><dc:creator>BCLTeam's WebLog</dc:creator><description /></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#145490</link><pubDate>Tue, 01 Jun 2004 18:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145490</guid><dc:creator>Anthony Moore</dc:creator><description>I added a new post as a reply to this feedback:&lt;br&gt;&lt;a target="_new" href="http://weblogs.asp.net/bclteam/archive/2004/06/01/145487.aspx"&gt;http://weblogs.asp.net/bclteam/archive/2004/06/01/145487.aspx&lt;/a&gt;&lt;br&gt;</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#148079</link><pubDate>Fri, 04 Jun 2004 03:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:148079</guid><dc:creator>Pawel Achtel</dc:creator><description>Microsoft has got the problem wrong for some 20 years and now they try to give recommendations...some of which are wrong again! What can I say?&lt;br&gt;&lt;br&gt;We have tried (with no success) to pitch a solution to Microsoft, which is part of our very generic library based on tensor theory. The library is aimed for graphics applications, but time can be also represented as field (like gravity, or any other vector) and can undergo tensor transformations (at quite high abstraction level). By doing so, you do not care how you represent the time, or even that it is time that you are dealing with - it may be just a coordinate on a screen or a gravity. All the algorithms are generic (and lighting fast).&lt;br&gt;&lt;br&gt;The result - yes, we can handle time and conversions to local including daylight saving adjustment any way you want. This is not only with much higher precision than the proposed methods, but correctly and consistently. To demonstrate this, please have a close look at two sample time scales of the graphs illustrated here: www.24x7.com.au/2d.htm &lt;br&gt;You will see that the local time is not linear; it is not even continuous. Because it is not continuous, it does not have inverse function (no conversion from Local time to UTC) - it is simply not possible and that's basic maths (non-continuous function does not have an inverse).&lt;br&gt;&lt;br&gt;Dear Microsoft, if you have no idea about the problem, please consult someone who knows something about it. I would be happy to help, but please, do not make recommendations if you got it wrong every time for the last two decades, okay?&lt;br&gt;&lt;br&gt;Kind Regards,&lt;br&gt;&lt;br&gt;Pawel Achtel&lt;br&gt;3D Software Development&lt;br&gt;www.24x7.com.au&lt;br&gt;</description></item><item><title>re: Why Not Add a New DateTime Date Type in Whidbey?</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#148165</link><pubDate>Fri, 04 Jun 2004 08:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:148165</guid><dc:creator>BCLTeam's WebLog</dc:creator><description /></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#148459</link><pubDate>Fri, 04 Jun 2004 17:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:148459</guid><dc:creator>JD</dc:creator><description>I've got to agree that the DateTime as-is simply leads to a Pit of Failure, not of Success, and for that reason is a bad API.  It's just too easy to get wrong.&lt;br&gt;&lt;br&gt;I have no idea about this academic 'tensor' thing above. Regardless, UniversalDateTime makes more sense. Having one type with so many interpretations sucks, the UTC-ness is part of the type IMHO.&lt;br&gt;&lt;br&gt;Your new ToBinary is just as breaking if someone tries to use it as the Ticks (which most people seeing an Int64 time field would do).  Just fix it by migration, leave the old class there for those dealing with local time only or backwards compat. Let the world move forward.&lt;br&gt;&lt;br&gt;</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#151395</link><pubDate>Wed, 09 Jun 2004 05:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:151395</guid><dc:creator>Anthony Moore</dc:creator><description>I have some questions about the comments here. Pawel, you say that we have guidelines that are incorrect. Please indicate which ones are incorrect. We recommend converting to UTC before doing any arithmetic. Is that something you would consider incorrect? If you mean that it does not take relativety into account or that standard clocks occaisionally get tweaked by a few seconds, I would contend that this is beyond the scope of a DateTime representation for normal business use.&lt;br&gt;&lt;br&gt;We are aware that ToBinary is not currently suitable for persistence accross time zones. This is something that should be addressed before we ship. If people confuse this with the Ticks, they should promptly get an argument exception.&lt;br&gt;</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#152128</link><pubDate>Thu, 10 Jun 2004 03:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:152128</guid><dc:creator>Pawel Achtel</dc:creator><description>There are number of problems in your approach, and no, my concept applies to business applications as well as other common problems associated with time. Coincidentally it also allows you to correctly deal with time relativity (curved time field), but this is not the argument I make. Although, I can see nothing wrong if NASA could use DateTime and be rest assured to land on Mars and not Neptune ;-) However, the applications I had in mind are more down to earth. &lt;br&gt;I explained that your recommendation is not deterministic, therefore not possible (without at least an occasional error). &lt;br&gt;One has to understand what time is in order to come up with a right model. For example, using ticks for that purpose is like counting wrinkles on your bum to tell the age - easy but not very reliable (I have many wrinkles on my bum and I still feel young). The best way (that I found) is to model the time as a tensor object - just like gravity, stress, displacement, coordinate or even the amount of money Microsoft has in it's account (I told ya it’s generic). Having tensor object representation, it allows for certain operations, some of which may be linear, some may be continuous, and some may be reversible. Such ability allows consistent, correct and well-defined operations (such as conversion to Sydney daylight saving adjusted time, or a number of seconds since Bush became the president). Using your approach the number of seconds that Bush was the president measured in Sydney and in New York would be different! This is a fault (one of many) in your approach and you do not need to land on Neptune instead of on Mars to find it out.&lt;br&gt;&lt;br&gt;I would be happy to get involved in providing a better solution for Microsoft. You can contact me directly off-line.&lt;br&gt;&lt;br&gt;Kind Regards,&lt;br&gt;&lt;br&gt;Pawel Achtel&lt;br&gt;3D Software Development&lt;br&gt;www.24x7.com.au&lt;br&gt;</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#181789</link><pubDate>Tue, 13 Jul 2004 18:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:181789</guid><dc:creator>James Smith</dc:creator><description>Hi,&lt;br&gt;&lt;br&gt;   Could anyone tell me how to get a month in english format out of a Date Time object i.e. &amp;quot;January&amp;quot;?&lt;br&gt;&lt;br&gt;   I expect it's DateTime.ToString(&amp;quot;something&amp;quot;);&lt;br&gt;&lt;br&gt;   can anybody help?&lt;br&gt;&lt;br&gt;James&lt;br&gt;EntrappaSolutions.com</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#181952</link><pubDate>Tue, 13 Jul 2004 21:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:181952</guid><dc:creator>Kit George [MSFT]</dc:creator><description>This code should do you the trick James:&lt;br&gt;&lt;br&gt;using System;&lt;br&gt;using System.Threading;&lt;br&gt;using System.Globalization;&lt;br&gt;&lt;br&gt;public class Temp {&lt;br&gt;	public static void Main() {&lt;br&gt;		DateTime dt = DateTime.Now;&lt;br&gt;		Console.WriteLine(Thread.CurrentThread.CurrentCulture.&lt;br&gt;&lt;br&gt;DateTimeFormat.MonthNames[dt.Month - 1]);&lt;br&gt;		&lt;br&gt;	}&lt;br&gt;}</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#196771</link><pubDate>Mon, 26 Jul 2004 10:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:196771</guid><dc:creator>dianying xia zai</dc:creator><description>dianying xia zai:&lt;a target="_new" href="http://www.kamun.com/"&gt;http://www.kamun.com/&lt;/a&gt;&lt;br&gt;movie down:&lt;a target="_new" href="http://movie.kamun.com/"&gt;http://movie.kamun.com/&lt;/a&gt;&lt;br&gt;mp3 xia zai:&lt;a target="_new" href="http://music.kamun.com/"&gt;http://music.kamun.com/&lt;/a&gt;&lt;br&gt;engage:&lt;a target="_new" href="http://club.kamun.com/"&gt;http://club.kamun.com/&lt;/a&gt;</description></item><item><title>re: DateTime FAQ Entries</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#199849</link><pubDate>Wed, 28 Jul 2004 19:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:199849</guid><dc:creator>Shital Shah</dc:creator><description>There is one serious problem in your recommandation to store date time format as &amp;quot;yyyy-MM-ddTHH:mm:ss.fffffff&amp;quot;. This format is not acceptable by lots of COM code written in VB6, VBScript and VBA function (you always find these things in enterprise environment in obscure places like VBA functions in Access queries). The reason these functions fails is because,&lt;br&gt;&lt;br&gt;1. They don't like fractional seconds part.&lt;br&gt;2. The &amp;quot;T&amp;quot; as seperator between date and time is not acceptable in some non-English local like Dutch. For example DateValue() call in VBA/VB6/VBScript getting executed in Netherlands will fail if you feed data generated by .Net program in above format.&lt;br&gt;&lt;br&gt;The format that you should use if you want your data to be readable in all worlds is this:&lt;br&gt;&lt;br&gt;&amp;quot;yyyy-MM-dd HH:mm:ss&amp;quot;&lt;br&gt;&lt;br&gt;Yes, you loose fractions of seconds but in a realistic world, this is the only format I've found that works in all different locals with .Net and with VB6 COM and VBScript and VBA.&lt;br&gt;&lt;br&gt;It would be really good to add a shortcut for this format in Whidbey because most people aren't aware of this. Its too late when you get a call from Japan that your new data generated from glorious .Net app doesn't go hand in hand with their queries fired on linked tables in Access :).&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Shital.&lt;br&gt;&lt;a target="_new" href="http://www.ShitalShah.com"&gt;http://www.ShitalShah.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br&gt;Whenever people say &amp;quot;we mustn't be sentimental&amp;quot;, you can take it they are about to do something cruel. And if they add, &amp;quot;we must be realistic&amp;quot;, they mean they are going to make money out of it.&lt;br&gt;&lt;br&gt;-Brigid Brophy&lt;br&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</description></item><item><title>Date </title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#250245</link><pubDate>Sun, 31 Oct 2004 22:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:250245</guid><dc:creator>Hackward and Foreword</dc:creator><description /></item><item><title>More DateTime related discussions during pre-Whidbey release</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#680685</link><pubDate>Fri, 28 Jul 2006 00:24:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:680685</guid><dc:creator>Kathy Kam</dc:creator><description>While doing my System.DateTime and System.TimeZone investigation, I come across some old discussions...</description></item><item><title>Ciaran&amp;#8217;s Random Writings  &amp;raquo; Blog Archive   &amp;raquo; The Rise and Fall of Microsoft Development Tools, Part 1</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#4544095</link><pubDate>Fri, 24 Aug 2007 18:38:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4544095</guid><dc:creator>Ciaran’s Random Writings  » Blog Archive   » The Rise and Fall of Microsoft Development Tools, Part 1</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.ciarang.com/index.php/archives/19"&gt;http://blog.ciarang.com/index.php/archives/19&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog DateTime FAQ Entries | Paid Surveys</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#9655446</link><pubDate>Fri, 29 May 2009 20:18:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9655446</guid><dc:creator> BCL Team Blog DateTime FAQ Entries | Paid Surveys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://paidsurveyshub.info/story.php?title=bcl-team-blog-datetime-faq-entries"&gt;http://paidsurveyshub.info/story.php?title=bcl-team-blog-datetime-faq-entries&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog DateTime FAQ Entries | Best Eye Cream</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#9707035</link><pubDate>Mon, 08 Jun 2009 05:43:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9707035</guid><dc:creator> BCL Team Blog DateTime FAQ Entries | Best Eye Cream</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://besteyecreamsite.info/story.php?id=2872"&gt;http://besteyecreamsite.info/story.php?id=2872&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog DateTime FAQ Entries | Cellulite Creams</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#9711879</link><pubDate>Tue, 09 Jun 2009 05:47:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9711879</guid><dc:creator> BCL Team Blog DateTime FAQ Entries | Cellulite Creams</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://cellulitecreamsite.info/story.php?id=11613"&gt;http://cellulitecreamsite.info/story.php?id=11613&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog DateTime FAQ Entries | home lighting</title><link>http://blogs.msdn.com/bclteam/archive/2004/05/21/136918.aspx#9747052</link><pubDate>Sun, 14 Jun 2009 04:54:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9747052</guid><dc:creator> BCL Team Blog DateTime FAQ Entries | home lighting</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://homelightingconcept.info/story.php?id=154"&gt;http://homelightingconcept.info/story.php?id=154&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>