I'm using your Facebook API for connecting the user to my website via via Facebook. I want to get just the birth year from the users Facebook profile. How?
Refer the below code.
lblBirthYear.Text = faceBookUser.Birthday.Split('/')[2];
or
lblBirthYear.Text = Convert.ToDateTime(faceBookUser.Birthday).Year.ToString()
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.