Is there any C# sample code for updating the time and date on Windows Mobile?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t have any exact sample, but you can do it by PInvoking SetSystemTime. The PInvoke page for
SetSystemTimehas some sample code which I’d thought would be very similar to the CF version and if there are any differences in doing PInvoke on Windows mobile you could probably find that out on this page: An Introduction to P/Invoke and Marshaling on the Microsoft .NET Compact FrameworkActually, might be easier than that even, I just found this page How to: Get or Set the System Time which seems to be CF specific…