Ken Brubaker

The ClavèCoder

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Subscriptions

News

Kenneth Brubaker
Senior Application Architect

Locations of visitors to this page

Post Categories



Monday, May 24, 2004 - Posts

WSE2: It's Here!
WSE 2.0 has finally shipped! So ends my daily routine of vising Omri's and Hervey's weblogs. Tipped off by Sam Gentile though it looks like I just checked too early in the morning.

posted Monday, May 24, 2004 10:43 AM by kenbrubaker with 0 Comments

DateTime: More DateTime best practices

Brad Abrams leads us to a new BCL Blog posting on DateTime by Anthony Moore.

After noting that changing DateTime to use Utc Dates is impractical, Anthony recommends how to serialize dates in binary and text formats.

The comments section raises issues I have in mind. Namely:

  • Whidbey should include a new class that supports Utc internal date format.
  • All dates should be stored as Utc. My personal feeling is that only display should be tied to timezone of the local user, everything else should be UTC.
  • Some dates are truly timezone neutral, such as time-of-day values and dates, such as birth dates.

An interesting note here is that SQL Server 2005 will include a DateTime that remembers it's timezone. I couldn't find more information on it (Does anyone have a good posting explaining the new datatypes?), but I did find that (as is just mentioned) .NET 2.0 will not support the new Date and Time types.

Note MSDN already has a good outline of DateTime best practices.

 

posted Monday, May 24, 2004 7:16 AM by kenbrubaker with 0 Comments




Powered by Dot Net Junkies, by Telligent Systems