title: Swift get custom date (time)
body: <p>I have problem to get specific time from Date(). I have labels with time on collectionView. How i can get correct time?</p>
  
  <p>This code allows me to get full data</p>
  
  <pre><code>private func recordUser() {
  
      let confirmationPayViewController = kMainStoryboard.instantiateViewController(withIdentifier: "EVConfirmationPayViewController") as! EVConfirmationPayViewController
      confirmationPayViewController.modelController = MedicalRecordModelController()
  
  
      guard let selectedIndexes = collectionView?.indexPathsForSelectedItems else { return }
      print("selectedIndexes: \(selectedIndexes)")
      for i in 0..&lt;selectedIndexes.count {
          let indexPath = selectedIndexes[i]
  
          if indexPath.section == 1 {
  
              let date = todaysTimes[indexPath.item].start
              print("date: \(date)")  // date: 2018-07-31 14:00:00 +0000
  
              let df = DateFormatter()
              df.dateFormat = "dd MMMM, HH:mm"
              df.timeZone = TimeZone.current
              df.locale = Locale(identifier: "ru_RU")
  
              confirmationPayViewController.modelController.medicalRecord.date = df.string(from: date)
              print("df2: \(df.string(from: date))")  //df2: 31 july, 05:00
          }
      }
  
      present(confirmationPayViewController, animated: true, completion: nil)
  }
  </code></pre>