title: How to split string containing two dates in UTC format in json data
body: <p>In my app my <code>JSON</code> contains a string with two dates. </p>
  
  <p><strong>My String</strong></p>
  
  <pre><code>"2017-07-22 00:00:00 SSS TO 2017-07-25 00:00:00 SSS"
  </code></pre>
  
  <p>I want the result in my tableView's <code>cellForRowAt</code> function:</p>
  
  <ul>
  <li><p>Expected Format:</p>
  
  <pre><code>22 Jul - 25 Jul
  </code></pre></li>
  </ul>
  
  <p>my code that i have tried but the finaDate gives me nil. Where am i wrong, please correct me:</p>
  
  <pre><code>let dict1 = fiidiiOverviewArr[section].date
  
              let items = dict1?.components(separatedBy: " TO ")
              let date1 = items![0]
              let date2 = items![1]
  
              print(date1)
              print(date2)
  
              let dateFormatter = DateFormatter()
              dateFormatter.dateFormat = "dd MMM '-' dd MMM"
              let string = date1 + " - " + date2
              let finalDate = dateFormatter.date(from: string)
              print(finalDate)
              view.Header_date.text = "\(String(describing: finalDate))"
  </code></pre>