Considering Blue Prism is a .NET application it is always worth looking for answers in MSDN .NET library resources. Go to MSDN and compare DateTime.DayOfYear Property with DateTime.Day Property - it looks like one returns a number between 1 and 366 and the other returns a number between 1 and 31.