forum

home / developersection / forums / how can i format a string?

How can I format a string?

marcel ethan 1884 14-Nov-2013

My string looks like 0145655789, I want to change its format to 0145.655.789

This is the code I tried:

enterpriseCode.Append(String.Format("{0:####.###.###}", aNum.ToString()).Replace(";", ""));

But it giving me same string, not giving me desired string.

How to do it?


c# c# 
Updated on 14-Nov-2013
marcel ethan

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By