Removing time from date format

Posted by Prash....... on Stack Overflow See other posts from Stack Overflow or by Prash.......
Published on 2010-05-29T06:08:38Z Indexed on 2010/05/29 6:12 UTC
Read the original article Hit count: 218

Filed under:

Hi,

I am developing an application in that i have used DatePicker to pick the date but it gives me date with time .I have converted that format into string, now i just want date from that. How should i do that.Plz suggest me something.

Following is my code Snippet.

  NSDate *selected =[datePicker date];
  NSString *dateString = [NSString stringWithFormat:@"%@", selected];

here date picker is object of UIDatePicker.

© Stack Overflow or respective owner

Related posts about iphone