How can i compare two dates (NSDate) in Swift 3 and get the days between them?
<p>How can I compare two dates in Swift 3?
I found many solutions for other Swift versions, but they doesn't work for me.</p>

<pre><code>let clickedDay:String = currentcell.DayLabel.text!
    let currentDate = NSDate()
    let currentDay = "" //want the current day
    let dateFormatter = DateFormatter()        
    var dateAsString = ""        
    if Int(clickedDay)! &lt; 10 {            
        dateAsString = "0" + clickedDay + "-11-2016 GMT"
    }
    else {            
        dateAsString = clickedDay + "-11-2016 GMT"
    }

    dateFormatter.dateFormat = "dd-MM-yyyy zzz"
    let clickedDate = dateFormatter.date(from: dateAsString)        
    if currentDate as Date &gt;= clickedDate! as Date {

        return true
    }
    else {
        //Want to get the days between the currentDate and clickedDate
        let daysLeft = ""
    }
</code></pre>

<p>I compare the tow dates, but i want the days which are between that tow dates.
Can someone help me pls?
Thanks and greets            </p>

<p>Added:
If I have the date 22.11.2016 and the currentdate (now 18.11.2016) i want the days between that (in this case 4)</p>