Following this method, my TFS Build throws the following error:
The expression “”21108″.SubString(4, 2)” cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length
It seems that for some reason, it is not pulling the full year in the date (notice it omits the first 3 digits). I’m not sure what I need to change so that it does get the full date so that the substrings are correct.
Any ideas?