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
Post a Comment