Home > Asp.net > Using String.Format(“{0}”, “formatting string”}; in Asp.net

Using String.Format(“{0}”, “formatting string”}; in Asp.net

Many times we want to define formats for date, currency, number etc

For example if we want date in

” 09 September 2009″  – String.Format{0:D}

” 09 September 2009 12:30″  – String.Format{0:f}

Like this various formats for date, month, year, time, currency number etc can be seen at :


  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: