Hello everyone,
What is the function of "D10" when use it as input parameter to Int.ToString? For example, someIntValue.ToString ("D10")? I can not find any document about this format input parameter from MSDN. Any documents?
thanks in advance,
George
George GeorgePosted Jul 28, 2008, 7:24 AM
Thanks Manish,
Question answered.
regards,
George
Blocked AccountPosted Jul 28, 2008, 12:39 AM
D10 fromat returns the 10 digit string value.
Suppose u have taken 5 as int value
int someIntValue=5;
string value = someIntValue.ToString("D10");
this will give the output like this: 0000000005
if u use D5 format then it will return the output like this : 00005
Happy Coding!!