I have the following date as a string: 2015-04-18T08:35:00.000+03:00 and I would like to get an offset from the GMT in seconds, i.e. 10800.
I can split the date string by '+' character, have a string xy:ab and then calculate the offset with formula xy*3600 + a*60 + b.
Is there any better way to achieve what I need, for example using NSDate and NSDateFormatter?
NSDateFormatter
. – Droppy