Created
September 30, 2013 00:06
-
-
Save chelseamy/6757713 to your computer and use it in GitHub Desktop.
How to format currency in C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
decimal moneyvalue = 1921.39m; | |
string html = String.Format("Order Total: {0:C}", moneyvalue); | |
Console.WriteLine(html); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are multiple ways of doing it, check this post
https://qawithexperts.com/questions/449/how-to-format-currency-string-in-c-to-add-commas-in-thousand
Using Javascript:
https://qawithexperts.com/questions/450/how-can-i-get-ddmmyyyy-formatted-current-date-in-javascipt
Thanks