PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Is there any equivalent of TimeZoneInfo.SupportsDaylightSavingTime incompact framework
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Is there any equivalent of TimeZoneInfo.SupportsDaylightSavingTime incompact framework
![]() |
Is there any equivalent of TimeZoneInfo.SupportsDaylightSavingTime incompact framework |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I am using Win CE 4.2 with .NET CF 3.5. I need to know if my current time zone support Daylight Saving time. .NET 3.5 full framework has TimezoneInfo.SupportsDaylightSavingTime which is not available in Compact Framework. I have a form in my application where user sets date & time. I am pinvoking to SetLocalTime. When ever AutoDST (Automatically adjust clock for daylight saving) check box is not checked under control panel Date/Time, Sytem.DateTime.Now is off by 1 hours while staying DST start/stop date which is expected behavior. I can set AutoDST check using setting registry key but every Timezone does not observes DST so I can't use this solution generically. If I know that the current time zone is observing DST and new date is in range of DST Start/Stop date, I can add 1 hour. Any help would be appreciated. Thanks, Jayesh Modha |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

