We had an assignment on school to calculate someones age using an Calendar. I think I am almost finished but I am stuck.
int todaysYear;
int selectedYear;
todaysYear = DateTime.Now.Year;
selectedYear = kalVerjaardag.SelectedDate.Year;
txtLeeftijd.Text = todaysYear - selectedYear;
This is the current code I'm working with, at the very last part of my code it tells me that it cannot convert an "int" to "string". What do I do to fix this situation? Thanks in advance :D.