I have a date from date picker in ios, I get the date and the time and I convert this to string and saved in localStorage. Then, I get this string date and convert it to NSDate and use it in my notification. But my problem is that the notification are not run because the date changes after conversion.
The time and date from picker is: dateFromPicker=Thursday-20-March-2014 09:21 AM
The time and date from picker before 4 hours is :StringDateBefore4hours=Thursday-20-March-2014 05:21 AM
The string time before 4 hours after converting to NSDate
is :DateBefore4hours=2014-03-20 00:21:00 +0000
The time is changed and my notification not run on the time selected what can we do help me please please .