Hi All,

I hope I explain this clearly and with enough information, please let me know if I can provide more information. I need to calculate age (in years) for summary statistics. I have the 'dob' variable in a format such as 08/13/1950 and the 'medicationscantime' variable as 11/25/2000 8:45:00PM. How do I subtract 'medicationscantime' from 'dob' to get age in years? I have STATA 15.1