Code for DateFormatter

 NSDateFormatter *dateFormatter=[[NSDateFormatter alloc]init];

        NSString *currentDateString = @"2014-01-08T21:21:22.737+05:30";
        [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSZ"];
        NSDate *currentDate = [dateFormatter dateFromString:currentDateString];
        

        NSLog(@"CurrentDate:%@", currentDate);

Comments

Popular posts from this blog

code for sending & recievieng the data to the server through Get and Post method in xcode