What are the API provided in the Compact Framework to read the time (NOT in UTC!!) on a windows mobile based device?
I was able to get the device time in UTC with this code:
DateTime dt = DateLib.Now;
SystemTime sysTime = new SystemTime();
Windows.SystemTime.GetSystemTime(out sysTime);
Windows.SystemTime.ConvertTimeStructure(ref sysTime, out dt);
Windows.SystemTime.SetSystemTime(dt);
But I want the time as per the device's time zone. Thanks