title: NSDate get year/month/day
body: <p>How can I get the year/month/day of a <code>NSDate</code> object, given no other information? I realize that I could probably do this with something similar to this:</p>
  
  <pre><code>NSCalendar *cal = [[NSCalendar alloc] init];
  NSDateComponents *components = [cal components:0 fromDate:date];
  int year = [components year];
  int month = [components month];
  int day = [components day];
  </code></pre>
  
  <p>But that seems to be a whole lot of hassle for something as simple as getting a <code>NSDate</code>'s year/month/day. Is there any other solution?</p>