Looking for a code sample that takes a .NET CF DateTime object, and sets the device’s date and time to that date (and/or time zone). The purpose of this is to get the current ‘real’ time off of a server via web service and set the device’s time correctly.
Anyone done this before?
You can use Opennetcf‘s DateTimeHelper class.
Alternatively you can p/invoke SetLocalTime.