iphone NSDate Problem
Following code i can use for store the value of UILable into string. And Value of string is store into NSDate. 

NSString *star = [[NSString alloc]init];
			star = lbtInDate.text;
			NSString *end = [[NSString alloc]init];
			end = lblOutDate.text;
			NSDateFormatter *dateFormatter1=[[NSDateFormatter alloc]init];
			[dateFormatter1 setDateFormat:@"yyyy-MM-dd HH:mm"];
			NSDate *sdate= [dateFormatter1 dateFromString:star];
			NSDate *edate=[dateFormatter1 dateFromString:end];

but the value of sdate and edate is shows nil. so please help how can i store the value of UILable into NSDate for compare.
iphone NSDate Problem
===

Following code i can use for store the value of UILable into string. And Value of string is store into NSDate. 

NSString *star = [[NSString alloc]init];
			star = lbtInDate.text;
			NSString *end = [[NSString alloc]init];
			end = lblOutDate.text;
			NSDateFormatter *dateFormatter1=[[NSDateFormatter alloc]init];
			[dateFormatter1 setDateFormat:@"yyyy-MM-dd HH:mm"];
			NSDate *sdate= [dateFormatter1 dateFromString:star];
			NSDate *edate=[dateFormatter1 dateFromString:end];

but the value of sdate and edate is shows nil. so please help how can i store the value of UILable into NSDate for compare.