title: Flutter: Find the number of days between two dates
body: <p>I currently have a user's profile page that brings out their date of birth and other details. But I am planning to find the days before their birthday by calculating the difference between today's date and the date of birth obtained from the user.</p>
  <p><strong>User's Date of Birth</strong></p>
  <p><a href="https://i.stack.imgur.com/0SDZ2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0SDZ2.png" alt="User DOB" /></a></p>
  <p>And this is today's date obtained by using the <a href="https://pub.dartlang.org/packages/intl#-installing-tab-" rel="noreferrer">intl package</a>.</p>
  <p><strong>Today's date</strong></p>
  <pre><code>I/flutter ( 5557): 09-10-2018
  </code></pre>
  <p>The problem I am facing now is, How do I calculate the difference in days of these two dates?</p>
  <p>Are there any specific formulas or packages that are available for me to check out?</p>