For example I have this day 2014-08-08 12:00AM
which is of course, true under daylight saving in the US.. how do I get the value of TRUE
on it?
Asked
Active
Viewed 86 times
0

rmaddy
- 314,917
- 42
- 532
- 579

user3517855
- 211
- 1
- 3
- 12
-
possible duplicate of [How to get daylight saving settings programmatically in Xcode?](http://stackoverflow.com/questions/23152954/how-to-get-daylight-saving-settings-programmatically-in-xcode) – Desdenova Apr 18 '14 at 12:00
-
Refer this link http://stackoverflow.com/questions/6866725/iphone-current-date-considering-daylight-saving – pankaj asudani Apr 18 '14 at 12:01
1 Answers
1
Based on my previous answer to you, but use isDaylightSavingTimeForDate:
instead.
NSDate *date; // Store your date 2014-08-08 12:00AM
BOOL dst = [[[NSCalendar currentCalendar] timeZone] isDaylightSavingTimeForDate:date];