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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -