Friday, July 04, 2008

How to convert string into currency format in C#

string strAmount = 100000;
double dblAmount = Convert.ToDouble(strAmount );

string strAmountInCurrency = string.Format("{0:$#,#.00}", dblAmount ); //returns $1,00,000.00 as result

No comments: