DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

dmihailescu Subscribe to this feed
dmihailescu
Profile Kicked Submitted Comments Tags Friends Kicked By Friends Submitted By Friends


Comments:

As I've shown, it's setting Length = 0, or another less elegant alternative is to call Replace(string.Empty) on the StringBuilder object.
That should clear the internal memory without invoking the finalizer.
posted by dmihailescu 1 year, 1 month ago

DateTime d;

d = DateTime.Parse("Oct 26, 2003 12:00:00 AM"); //date assignment

d = d.ToUniversalTime().AddHours(3.0).ToLocalTime();



//' - displays 10/26/2003 02:00:00 AM – Correct!

MessageBox.Show(d.ToString());
I thought that the correct result should be 3 a.m. not 2.a.m.
Am I missing something?
posted by dmihailescu 1 year, 1 month ago
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge