Using Julia, I'd like the find the period between two points in time, t2 and t1, where both t1 and t2 are in the format "y-m-d". I'm able to get this value in days, but I'd like to covert it to years:
date_format = DateFormat("y-m-d")
age_days = Date(t2, date_format) - Date(t1, date_format)
age_years = Dates.Year(age_days)
The above consistently returns an error. Understand I could just do Dates.value(age_days)/365.25, but is there a way to do this utilizing a built in function?