How can I format decimal property to currency?

Viewed 135512

I want to format a decimal value as a currency value.

How can I do this?

9 Answers

In My case, I have to convert it into decimal as above mentioned I used to string Format method and then parse it to decimal and it works fine for me here is the example.

public decimal Amount;

public decimal_amount;

So I assigned values like this:

Amount = decimal.Parse(String.Format("{0:C}", _amount))

Related