I want to display age of user to string. I am working with Facebook API and I see only date of birthday but not age value. Is it possible to convert bithday to age? This is my code using birthday:
[[[FBSDKGraphRequest alloc] initWithGraphPath:@"me"
parameters:@{ @"fields" : @"id,birthday)"}]startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
if (!error) {
NSString *ageOfLoginUser = [result valueForKey:@"birthday"];
self.age.text = ageOfLoginUser;
}
}];