how to change json string to date format in tableview in swift4 : i'm using tableview with getting JSON data. and i want to convert JSON string to date format in tableview cell and i'm using protocol also string

my JSON data format

"createdDate": "2018-08-16 11:34:59"

now i want to convert in date format

    enter code here
    
   in cell for row function
   
    cell.Date.text = JSONList[indexPath.row].createdDate

i'm getting this "2018-08-16 11:34:59" full string
  