I want to subtract a number (that in a variable) from the current year

I change your end - .ToString(“dd-MM-yyyy”)
to - .ToString(“ddMMyyyy”)

thank you again for all your trouble and help
thank you very much!!!

1 Like

DateTime.ParseExact(currentDate,“dd-MM-yyyy”,System.Globalization.CultureInfo.InvariantCulture).AddYears(-CINT(Experience)).ToString(“ddMMyyyy”)

Yes @dlichtenstadt it gives you ddMMyyyy format.

You are welcome :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.