Getting NSDate from NSString
<p>I am trying to convert NSString to NSdate. The string has date in it.i use the following </p>

<pre><code>NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; 
[dateFormat setDateFormat:@"MM/dd/yyyy"];
NSDate *date = [dateFormat dateFromString:setitempricedate];
NSLog(@"Date : %@",date);
</code></pre>

<p>the input string contains the date in the format 02/08/2011
when i log date , i get 2011-02-07 18:30:00 GMT, </p>

<p>I want to get the date as 02/08/2011 only. Where am i going wrong</p>
