How can i get the date from database and load it onto the UIDatePicker?
ok i will describe my question in detail I am fetching data from SQLite 3 database and that data is fetched onto the RootViewController from the database.Now i want that data to be forwarded to the next view in which i have my UIDatePicker,So the UIDate Picker should display the date from the database. I know how to load the current date and time.
This is the implementation
(void)viewDidLoad {
[super viewDidLoad];
database =[[Database alloc]init];
arrMain=[[NSMutableArray alloc]initWithArray:[database SelectName]];
NSArray *arrTemp=[upStr componentsSeparatedByString:@"|"];
fname.text =[arrTemp objectAtIndex:3];
lname.text=[arrTemp objectAtIndex:4];
designation.text=[arrTemp objectAtIndex:2];
} I get the data from the array onto the textboxes,but i am not able to set the date from the database to the UIDatePicker.I hope u get my question,Thnks for a prompt reply!