DateTime will work for getting the time but if you want to set it you will
have to P/Invoke SetSystemTime. The FAQ has an entry with a code sample
that sets the time ahead one hour:
Keep in mind that if you P/Invoke SetTimezoneInfo, DateTime.Now will no
longer give the same result as GetLocalTime.
--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems www.applieddata.net
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.