I've been trying to look for an answer for a while but couldn't find one corresponding to mine.
I have stored the Date Of Birth of a person in firebase
AS a String. I've retrieve it correctly using onDataChange
. But the problem arises when i need to calculate the age of that person and i can't extract the year from that String. Can anyone help me?
Thank you