Assign current year

Hi Guys,

how can we assign only current year in web year field so that no matter if we run bot in 2019 then it should automatically set year value to 2019

3 Likes

System.DateTime.Now.Year.ToString

12 Likes

You can use this in assign activity to the variable for which you want to assign the year

4 Likes