.NET DateTime and Timezone: It Seems Simple, but It's Not

Over the past several months, I have been learning about how DateTime really works.  It turns out that there are pitfalls in something that appears to be inherently simple.  Here is a group of interesting work on the subject arranged by date.


Why Daylight Savings Time is Non-intuitive Raymond Chen blog

Coding Best Practices Using DateTime in the.NET Framework Dan Rogers MSDN article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/datetimecode.asp

New DateTime Best Practices Article BCL Team blog

DateTime Compatibility Issue Brad Abrams blog http://blogs.msdn.com/brada/archive/2004/02/17/74914.aspx

Representing Null DateTime Values in Code Scott Munro blog

Adding Emptiness to the DateTime class Eric Gunnerson blog

DateTime, Serialization and TimeZones Brad Abrams blog http://blogs.msdn.com/brada/archive/2004/04/13/112784.aspx

More on DateTime and TimeZones Brad Abrams blog http://blogs.msdn.com/brada/archive/2004/04/20/117279.aspx

DateTime FAQ Entries BCL Team blog http://blogs.msdn.com/BCLTeam/archive/2004/05/21/136918.aspx

This article is part of the GWB Archives. Original Author: Mark Treadwell

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.