title: iOS get today's day and month as int
body: <p>I'm just learning Objective-C and Xcode and trying to make some simple apps.<br>
  I need to get today's day and month as ant int.<br>
  Example:<br>
  Todays day: 29/12/2013<br>
  <code>(int) TodaysDay = 29;</code><br>
  <code>(int) TodaysMonth = 1200;</code> (1 - 100, 2 - 200, 3 - 300...)<br>
  <code>(int) TodaysValue = TodaysDay + TodaysMonth;</code> (in ex. 1229)<br>
  <code>switch(TodaysValue)</code><br>
  <code>case 1229:</code><br>
  <code>do something.</code><br>
  I tried using this:  </p>
  
  <pre><code>NSDate *today = [NSDate date];
  NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
  [dateFormat setDateFormat:@"dd/MM"];
  NSString *dateString = [dateFormat stringFromDate:today];  
  </code></pre>
  
  <p>Thank you for your help!<br>
  This works pretty well!  </p>
  
  <pre><code>CFGregorianDate currentDate = CFAbsoluteTimeGetGregorianDate(CFAbsoluteTimeGetCurrent(), CFTimeZoneCopySystem());
  TodaysDay = currentDate.day;
  TodaysMonth = currentDate.month;
  TodaysValue = TodaysDay + (TodaysMonth * 100);
  </code></pre>