"sujoy kar" <su*******@vsnl.net> wrote in message
news:O%****************@TK2MSFTNGP15.phx.gbl...
I want to format numeric values while displaying like 0 shouldbe
formatted as 0.00 in windows form in .NET using c#
Have a look at the overloaded .ToString() method. You can use the built-in
formatting, or you can roll your own e.g.
double dblTest = 123456.70123;
string strDouble = dblTest.ToString("#,###0.00"); // displays "123,456.70"
DateTime dtmDate = new DateTime(2005, 8, 3);
string strDate = dtmTest.ToString("dd MMM yyyy"); // displays "03 Aug 2005"