I'm trying testing the C# .AddYears(); function but for some reason I can't get it to work.
nu = DateTime.Now;
MessageBox.Show(nu.ToString());
nu.AddYears(18);
MessageBox.Show(nu.ToString());
Why are both MessageBoxes exactly the same?
It doesn't seem to add 18 years to my nu variable for some reason.
Does anyone know what I'm doing wrong in this code?