Reputation: 12607
In IB I set 28 of November. When I run iphone it shows 28 of November. Please see the screenshot.
But now I want to show current day. How can I do ?
Upvotes: 0
Views: 833
Reputation: 671
//set picker date and time in this way
NSDate *date = [lodatapicker date];
[dateFormater setDateFormat:@"EEE, MMMM dd yyyy"];
NSString *dateString = [dateFormater stringFromDate:date];
[label setText:dateString]
Upvotes: 0
Reputation:
Set the picker to the date using NSDate class.
NSDate *date = [NSDate date]; // current day
[picker setDate:date animated:YES];
Upvotes: 1