+ 2
How can I find the age of person by his birthdate? I am taking the birthdate from user through date picker.
I want a func that will Calculate age of person by using his birthday and should return his age in int. I want it in swift 4.Any help will be appreciated.
2 Respuestas
0
I did it by setting the max value of dateformatter to - 18 years. :)
0
are you looking for code?