title: How to get absolute value from NSDateComponents
body: <p>I want to take absolute value from NSDateComponents.</p>
  
  <pre><code>&lt;NSDateComponents: 0x600000477c80&gt;
  Calendar Year: -1
  </code></pre>
  
  <p>I tried the following way.But I did not get the exact value.How can i get the value 1 from the components.</p>
  
  <pre><code>    NSDate *startDate = [formatter dateFromString:birthDate];
      NSCalendar *gregorianCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
      NSDateComponents *components = [gregorianCalendar components:NSCalendarUnitYear
                                                          fromDate:startDate
                                                            toDate:today
                                                           options:0];
  
      NSInteger year = [components year];
  </code></pre>