Re: Formatting a string with leading zeroes.
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Thu, 26 Jan 2006 07:32:37 +0100
Andrew,
>If I have a number representing a number of minutes and I want to format it
>as a string with two characters, with a leading 0 if the value is less than
>10, how do I do that?
number.ToString("00")
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- Follow-Ups:
- Re: Formatting a string with leading zeroes.
- From: Syed Abbas Naqvi
- Re: Formatting a string with leading zeroes.
- References:
- Formatting a string with leading zeroes.
- From: Andrew Chalk
- Formatting a string with leading zeroes.
- Prev by Date: Re: Advanced UDP communications and client side packet loss
- Next by Date: RE: FtpWebRequest EnableSSL behind NAT
- Previous by thread: Formatting a string with leading zeroes.
- Next by thread: Re: Formatting a string with leading zeroes.
- Index(es):
Relevant Pages
|