title: Comparing 2 dates, error in NSDateComponents
body: <p>I have 2 dates. Date1 in yyyy-MM-dd 21:00:00 +0000. Date2 in yyyy-MM-dd</p>
  
  <p>I need to compare it and get age result.</p>
  
  <p>Problem is that Ia have an error in NSDateComponents string.</p>
  
  <pre><code>NSDate *date1 = [NSDate date];
  
  NSDate *date2temp = uBirthdate;
  NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
  [dateFormatter setDateFormat:@"yyyy-MM-dd"];
  NSString *dateString = [dateFormatter stringFromDate:date2temp];
  [dateString stringByAppendingString:@" 21:00:00 +0000"];
   NSDate *date2 = [dateFormatter dateFromString:dateString];
  
  NSCalendar *calendar = [NSCalendar currentCalendar];
  NSDateComponents *components = [calendar components:NSYearCalendarUnit fromDate:date2 toDate:date1 options:0];
  NSInteger editedAge = components.year;
  
  NSLog(@"%d ", editedAge);
  </code></pre>
  
  <p>It will be better to cut off '21:00:00 +0000' from date1, but I do not know how can I do it</p>