Why dosn't DateTime have a timezone property?

  • Thread starter Thread starter Damien McGivern
  • Start date Start date
D

Damien McGivern

Just wondering if this is an oversight or by design if so how are you
supposed to establish a timezone? I've only just noticed this while creating
a webservice which needs it.

Cheers
McGiv
 
int HoursOffsetFromUtc=
System.TimeZone.CurrentTimeZone.GetUtcOffset(System.DateTime.Now).Hours;
 
Back
Top