How to convert NSDate to NSString?
<p>converting <code>NSDate</code> to <code>NSString</code> creates a memory leak can anyone help.</p>

<p>Here is my code:-</p>

<pre><code>NSDate *today = [[NSDate alloc]init];
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy-MM-dd"];
dateString = nil;
dateString =[[NSString alloc]initWithString:[df stringFromDate:today]];
[df setDateFormat:@"EEEE       MMM dd yyyy"];
[dateButton setTitle:[df stringFromDate:today] forState:UIControlStateNormal];
[df release];
[today release];
</code></pre>
