title: How to display a NSDate in table column
body: <p>I have one table with columns "name" and "date"</p>
  
  <p>I want date to appear in format "dd/MM/yy" but it display like "friday 13 April 2012 12:00:00 AM India Standard Time".</p>
  
  <p>I have following code:</p>
  
  <p>Person.h</p>
  
  <pre><code>@interface Person : NSObject{
  
      NSString *name;
      NSDate *date;
  }
  
  @property(retain) NSString *name;
  
  @property(retain) NSDate *date;
  </code></pre>
  
  <p>Person.m</p>
  
  <pre><code>#import "Person.h"
  
  @implementation Person
  
  @synthesize name; 
  
  @synthesize date;
  
  - (id)init {
  
      self = [super init];
  
      self.date = [NSDate date];
  
      return self;
  
  }
  
  - (void)dealloc {
  
      [name release];
  
      [date release];
  
      [super dealloc];
  }
  </code></pre>
  
  <p>Now while adding a data to table I have written following code</p>
  
  <pre><code>Person *data = [Person new];
  [data setName:@"abc"];
  
  NSString *dateStr = @"13/04/12";
  NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
  [dateFormat setDateFormat:@"dd/MM/yy"];
  NSDate *date = [dateFormat dateFromString:dateStr];
  [data setDate:date];
  
  [arrayController addObject:data];
  [data release];
  </code></pre>
  
  <p>arrayController is the NSArraycotroller.
  Adding Person object into arrayController after adding all entries in nstable 
  [tableView reloadData] to update a table view.</p>
  
  <p>But in table it displays "Friday 13 April 2012 12:00:00 AM India Standard Time"</p>
  
  <p>Please Suggest any solution.</p>