NSDateFormatter* formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@\"dd-MM-YYYY HH:mm\"]; [formatter setTimeZone:[NSTimeZone syst
In SWIFT
let dateFormatter = NSDateFormatter() dateFormatter.dateFormat = "dd MMM yyyy HH:mm" dateFormatter.stringFromDate(NSDate())