I am trying to change `date` `time` concatenation and changing string input format to another format. I tried below code. Here, I can able to change the date format but need to `concatenate` current time before passing input date string.

My Code Below

```swift
override func viewDidLoad() {
    super.viewDidLoad()   
    let result = formattedDateFromString(dateString: "28 Aug, 2019", withFormat: "dd-MM-yyyy")
    self.resultLabel.text = result           
}

func formattedDateFromString(dateString: String, withFormat format: String) -> String? {
    let inputFormatter = DateFormatter()
    inputFormatter.dateFormat = "dd/MM/yyyy"
    if let date = inputFormatter.date(from: dateString) {
        let outputFormatter = DateFormatter()
        outputFormatter.dateFormat = format
        return outputFormatter.string(from: date)
    }
    return nil
}

```

Expected output like :

```
28-08-2019 5:00 PM

```