469,358 Members | 1,659 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

Setting timezone in Windows CE4.0 .NET1.1


I'm looking for a way to set the timezone on a mobile (windows CE4.0). I know there is no specific function in .NET1.1 and by looking on pinvoke.net: HomePage (misc) between coredll I understand that there is no API function to do the trick.

The scenario is the following: I have a server which sends out his dateTime information using the following format "yyyyMMdd zzz" . This returns the date + timezone. This reaches the mobile as a string. There I try to parse it exactly back to this format. The problem is that it doesn't save the timezone. It takes the timezone on the mobile device.

What would be the best way to sync the timezone on the mobile device with the timezone on the server?

Kind regards,
Jan 20 '09 #1
2 3148
7,872 Expert 4TB
Do you have the date command (open up a command window on the device and type it) available to you? You could just run that command. It takes the format MM-dd-yyyy
Jan 20 '09 #2
648 Expert 512MB
What about the setTimeZone function?

SetTimeZoneInformation Function (Windows)
Jan 21 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Raj Chudasama | last post: by
reply views Thread by jrhastings | last post: by
3 posts views Thread by mac11 | last post: by
2 posts views Thread by Paul Sijben | last post: by
6 posts views Thread by jehugaleahsa | last post: by
reply views Thread by AqD | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.