title: datedifference in days in a datetime field in apex
body: <p>How can i find the difference of 2 datetime fields in days ?</p>
  
  <p>I couldnt find anything on the documentation for this. i can see that there are methods to add hours, days but cant find anything on getting the datedifference.</p>
  
  <p>The one way i can think of is to convert both fields into datetime using valueof and use the date function daysbetween.</p>
  
  <pre><code>    integer Days__c = Date.today().daysBetween(date.valueof(datetimefield__c));
  </code></pre>
  
  <p>Any are there any other better options?</p>