Number Format

  • Thread starter Thread starter Mr Nobody
  • Start date Start date
M

Mr Nobody

Hi all,

Are there any numeric functions i can use to prepend '0' to all numbers less
than 10?

Currently i am doing this: int Val = (Convert.ToInt32(strTimeValue) < 10 ?
String.Concat("0", strTimeValue) : strTimeValue);

But wonder if the is some number format function that will do this for me?

Any help appreciated!!!
 
Back
Top