title: find total number of days between two dates in iphone
body: <p>I would like to find total number of days between two dates.</p>
  
  <p>e.g. today is 01-01-2011(DD-MM-YYYY) and  second date is (25-03-2011), how would I find the total number of days?</p>
  
  <pre><code>NSDate *currentdate=[NSDate date];
  NSLog(@"curretdate is ==%@",currentdate);
  NSDateFormatter *tempFormatter1 = [[[NSDateFormatter alloc]init]autorelease];
  [tempFormatter1 setDateFormat:@"dd-mm-YYYY hh:mm:ss"];
  NSDate *toDate = [tempFormatter1 dateFromString:@"20-04-2011 09:00:00"];
  
  NSLog(@"toDate ==%@",toDate);
  </code></pre>