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

2 Likes

System.DateTime.Now.Year.ToString

8 Likes

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

3 Likes