Days between two dates and store in variable
<p>How can i store the calculated days between two dates in a variable so i can store the "days" in CloudKit</p>

<p>My code are (working to calculate days between dates):</p>

<pre><code>let calendar = NSCalendar.currentCalendar()

    let components = calendar.components([.Day], fromDate: datepicked, toDate: enddate, options: [])

    print("DAYS LEFT :" , components)
</code></pre>

<p>Result are :</p>

<pre><code>DAYS LEFT : &lt;NSDateComponents: 0x7fd399ccb890&gt;
Day: 1095
</code></pre>