views:

45

answers:

1

How can I update date & time & region on Windows CE?

I need any C# code for this.

for example: i want to update to: 21/12/2010 05:34 (region format dd/MM/yyyy)

Thanks in advance.

+1  A: 

Updating the actual system time has to be done via P/Invoke. MSDN has an article on it. Changing the date format woudl require P/Invoking SetLocaleInfo, probably with the LOCALE_STIMEFORMAT LCTYPE.

ctacke