I am trying to figure out how to change the output of the below code.
It returns: Optional(2017-11-09 04:54:51 + 00000
I only want the date value 2017-11-09
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
let ots = otsProcessConfirmations[indexPath.row]
cell.textLabel?.text = ots.otsBranch
cell.detailTextLabel?.text = String(describing: otsProcessConfirmations[indexPath.row].otsDate)
return cell
}