C# String Formating

August 2, 2008 · Print This Article

String formating is pretty easy task in C# or ASP.NET

To format date you use:
{0:d}

To format numers to contains semicolon as thousand separator you use:
{0:n}

The easiet way to format a string is to use String.Format method.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • description
  • Furl
  • Live
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Comments

Got something to say?

You must be logged in to post a comment.