Given the string “18” which is the age of a person, how can I get the
year of birth?
eggie5 schrieb:
Given the string “18” which is the age of a person, how can I get the
year of birth?
Time.now.year - ‘18’.to_i
But this is only an approximation.
Regards
Jan