title: Work out number of days using Month Calendar Delphi
body: <p>I'm using two Month calendar on my form. I select a date on each one and I want to calculate the number of days between these two days. I only code I have is</p>
  
  <pre><code>procedure TForm1.Button1Click(Sender: TObject);
  Var
   N, m: TDate;
   d: Real;
   l,k:String;
  begin
   N := (MonthCalendar1.Date);
   m := MonthCalendar2.Date;
   L := formatdatetime('dd', N);
   K:=formatdatetime('dd',M);
   d := StrToFloat(L)-StrToFloat(K);
   ShowMessage(FloatToStr(d));
  
  end; 
  </code></pre>