title: How to read NSDate from Sqlite. Syntax white spot.
body: <p>I store NSDate in sqlite (DATE format) by automatically inserting date() when new update happens. 
  In my object class I have a (NSString*) field to store this value.
  In dbAccess (class to store all sqlite query methods) I am reading from db the table and filling object with data from table.</p>
  
  <p>So, my problem is syntax. How to repair it?</p>
  
  <p>Method that's read data from table and fills the object with it</p>
  
  <pre><code>...
  while (sqlite3_step(statement) == SQLITE_ROW)
  {
      Item *item=[[Item alloc]init];
      NSDate *dated=(NSDate*)sqlite3_column_text(statement, 8);
  
      //Converting date NSDate to NSString
      NSDateFormatter *df = [[NSDateFormatter alloc]init];
          [df setDateFormat:@"yyyy-mm-dd"];
          NSString *date =[NSString stringWithFormat:@"%@",[df stringFromDate:dated]];
  
      //Trying to input the date into object. The receiving (dated)var is NSString
      item.dated=(date)?[NSString stringWithUTF8String:date]:@"";
  
      [item release];
  }
  </code></pre>
  
  <p>Finally getting warning "Incompatible pointer types sending NSString to parameter pointer 'const char'.</p>
  
  <p>How to repair this syntax issue.</p>
  
  <p>Thank you in advance.</p>