title: Determine iDevice current date in Xcode - NSDate
body: <p>I want to create a simple if function which carries out a bit of code depending on if the current iDevice year is 2012. I have tried to use NSCalendar and NSDateComponents in Xcode for this but have failed... :(</p>
  
  <p>Anyone know of any good resources or blogs with tutorials/advice on this kind task?</p>
  
  <p>Thanks,</p>
  
  <p>Dan</p>