Number Format

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!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,460
Latest member
eibafima

Latest Threads

Top