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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top