|
|
|
iOS - How to show result only date. |
|
|
|
|
|
|
|
Hi,sathish
UIDatePicker you can display only date ,set mode date
Code (Objective-C)
UIDatePicker *datePicker = nil;
[datePicker setDatePickerMode:UIDatePickerModeDate];
Thanks.
|
|
|
|
|
Date :
2013-08-09 17:13:03 |
By :
ปลา |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks.
but I'm using this code
Code (Objective-C)
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd"];
NSDate *date = [datePicker date];
NSString *formattedDateString = [dateFormatter stringFromDate:date];
lblResult.text = formattedDateString;
NSLog(@"formattedDateString: %@", formattedDateString);
|
|
|
|
|
Date :
2013-08-09 17:28:09 |
By :
vishwa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2013-08-11 10:12:19 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|