Hi all,
I'm trying to set the date of a UIDatePicker but I the month is everytime "January"(01). I tryed to use "MM" and "LL", but both of them are not working.
My code:
-(void)viewDidLoad {
[super viewDidLoad];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"YYYY-MM-DD"];;
NSDate *anyDate = [dateFormat dateFromString:@"2019-09-11"];
[datePicker setDate:anyDate];
[dateFormat release];
}
Thanks in advance,
Claudio