title: Total days from two dates in mysql
body: <p>For the leave application, FROM date and TO date is given by selecting the dates from calender. I have these two dates in mysql.I want to calculate number of days for the leave. So Person applying leave from July 1 to July 5 th. So total 5 days.
  But when i use DateDiff(to, date) it gives 4.
  How can i get 5 days?</p>
  
  <pre><code>select datediff('2015-07-05','2015-07-01');
  </code></pre>