i am using following code to convert string to Date
let strTime = "2015-07-27 19:29"
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd HH:mm"
var date = formatter.date(from: strTime)
but its output as follows
we can see time in the Date is not correct (13:59)as we given on string (19:29)