title: How to parse different files depending on the current date in Xcode?
body: <p>I have the following problem: I am building an app that is a TV Guide. I am parsing the listing for the channels from a xml file on the internet. This is my code:</p>
  
  <pre><code>-(void)loadListing
  {
      NSURL *urlListing = [NSURL URLWithString:@"http://pik.bg/TV/bnt1/29.03.2013.xml"];
  
      NSData *webDataListing = [NSData dataWithContentsOfURL:urlListing];
  
      NSString *xPathQueryListing = @"//elem/title";
  
      TFHpple *parserListing = [TFHpple hppleWithXMLData:webDataListing];
  
      NSArray *arrayListing = [parserListing searchWithXPathQuery:xPathQueryListing];
  
      NSMutableArray *newArrayListing = [[NSMutableArray alloc] initWithCapacity:0];
  
      for (TFHppleElement *element in arrayListing)
      {
          Listing *shows = [[Listing alloc] init];
          [newArrayListing addObject:shows];
          shows.broadcast = [[element firstChild] content];
      }
  
      _shows = newArrayListing;
      [self.tableView reloadData];
  }
  </code></pre>
  
  <p>Look at the first row - my file's name is <strong>/.../01.04.2013.xml</strong>
  Tomorrow's file will be <strong>/.../02.04.2013.xml</strong> and etc.
  How to make it parse different files depending on the current date? Like this: today parses /.../01.04.2013, tomorrow will parse /.../02.04.2013 and etc. ? Thanks in advance!</p>