title: PFQueryTableViewController sections by date in swift
body: <p><em>First, its probably a rookie question, but I'm trying to solve it for some time and I could not.</em></p>
  
  <h2>Goal:</h2>
  
  <p>Using [PFQueryTableViewController][1], I want to have sections relating to dates. </p>
  
  <p>Example: this week, next week, soon.</p>
  
  <h2>Background:</h2>
  
  <p>The question about adding sections on a PFQueryTableViewController is discussed in this [Parse topic][2]. But the approach has nothing to do with dates intervals and I failed to adapt it to my goal.</p>
  
  <h2>Question:</h2>
  
  <p>Please, could you guys point me out what steps should I take to get what I want? First, discriminate the entrys to different intervals of time (this week, next week, for exemple) - getting it from Parse -, and then arrange it in sections?</p>
  
  <p>I'm using swift.</p>
  
  <p>Thanks in advance!</p>
  
  <hr>
  
  <h2>Edit</h2>
  
  <p>@danh suggested giving up the PFQTVC and start a fresh ViewController: the code to this approach, fulfilling what is asked by the question, is found in the answers, in <strong>Objective C</strong> and <strong>Swift</strong>.</p>