/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ NSInteger sourceGMTOffset = [sourceTimeZone secondsFromGMTForDate:sourceDate]; NSInteger destinationGMTOffset = [destinationTimeZone secondsFromGMTForDate:sourceDate]; NSTimeInterval interval = destinationGMTOffset - sourceGMTOffset; return destinationDate; }