c# - Display numbers with 20 in front of var -


how can display numbers 20 in front of var? (i.e. \20172018\inv instead of \1718\inv)

insert 20 @ particular places building new string substrings. assuming variable in string called s:

string newstring = s.substring(0,1) + "20" + s.substring(1,2) + "20" + s.substring(3,6); 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -