What I do is:
How to add minutes to current time in swift
how to add 30 minutes to current time
Here is my code:
 endFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
 let endTimeString = "2017-01-16 12:58:56"
 let endTime = endFormatter.dateFromString(endTimeString)
 endTime?.dateByAddingTimeInterval(180) // 3 Minute
 print(endTime)
1st answer @rob i tried that one but failed . second answer suggest dateByAddingTimeInterval i am not suer is it is work or not .
