I am trying to put in order the returned date string from webService but the code below has not been working;
static func ConvertTStringToDate(dateString: String!) -> NSDate!
{
// 2014-06-28T00:00:00
var dateTime: Array<String> = dateString.componentsSeparatedByString("T")
var dateThrougTime: String = dateTime[0] + dateTime[1]
var dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "dd-MM-yyyy HH:mm"
var convertedDate: NSDate = dateFormatter.dateFromString(dateThrougTime)!
return convertedDate
}