I have a mac address that is formatted as 0018103AB839 and I want to display it as: 00:18:10:3A:B8:39
I am trying to do this with string.Format , but I cannot find the exact syntax.
right now i am trying something like this:
string macaddress = 0018103AB839; string newformat = string.Format("{0:00:00:00:00:00:00}", macaddress);
Is it possible? or should i use string.Insert ?
string c #
2pietjuh2
source share