> Is there a good handling tool for dates in
> C#? I'd like to get my hands on something
[quoted text clipped - 6 lines]
> Is there something like that already or
> will i have to write it myself?
DateTime and DateTimeOffset (.NET 2.0SP1) do quite a lot of this, but
you do need to be careful when it comes to timezones etc.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
K Viltersten - 16 Mar 2008 17:16 GMT
>> Is there a good handling tool for dates in
>> C#? I'd like to get my hands on something
[quoted text clipped - 10 lines]
> do quite a lot of this, but you do need to
> be careful when it comes to timezones etc.
Luckily, i'll be developing for one, single
time zone, so that issue is gone. I hope
that the rest is coded well so i won't have
to be surprised by one of the many gotchas
there are in our calendar system.
Thanks.
--
Regards
Konrad Viltersten
--------------------------------
sleep - a substitute for coffee for the poor
ambition - lack of sense to be lazy
> Is there a good handling tool for dates in
> C#? I'd like to get my hands on something that will help me compute e.g.
> number of
> minutes between point A and B in time BUT
> also will regard things as leap years, daylight savings etc. within a
> range of a decade.
If A and B are DateTime then you can just use (B-A).TotalMinutes !
You can always get burned by sufficient complex logic with
timezones, DST and changes.
Arne