String with integer

I need to add one string with two integer
Ex:- Ram + (current year - Date of birth)
Result :- Ram 26

@Abdul_Rahman2

Please try Ram
β€œRam” + (current year - Date of birth).tostring

4 Likes

@Abdul_Rahman2

Welcome to our uipath community.

Try like this.

      "Ram" + (Now.Year - Dateofbirth.Year).Tostring

Where as Dateofbirth variable is of type DateTime.

1 Like