DotNetShoutout - Stories tagged with Formatting
3
Shouts

C# Custom Number Formatting

published 704 days, 12 hours, 34 minutes ago posted by JudoJudo 704 days, 22 hours, 38 minutes ago
Thursday, June 16, 2011 8:51:14 PM GMT Thursday, June 16, 2011 10:47:09 AM GMT
Very often the inbuilt numerical formatting in C# will be insufficent and you will want to apply the custom formatting for your numbers. The String.Format method is very flexible and can be used to apply custom formatting rules. The # character informs the Format method how to format the numerical value, (more)
category: Architecture | clicked: 17 | comment | | source: www.csharphelp.com
tags: Formatting, C#, String.Format, Format
4
Shouts

Formatting Numerical Data in C#  | C# Help

published 704 days, 12 hours, 34 minutes ago posted by JudoJudo 705 days, 21 hours, 38 minutes ago
Thursday, June 16, 2011 8:51:14 PM GMT Wednesday, June 15, 2011 11:46:59 AM GMT
C# ships with several inbuilt formatting specifies which can be used to quickly format a number, for example the ‘c’ specifier will format the number as a currency:double dbl1 = 9999999.9999999; outputStr = string.Format("This is the currency format {0:c}", dbl1); This will output the numerical value as a currency based on the user’s current currency setting. In my case this will output:This is the currency format $10,000,000.00 Note firstly that String.Format is a static method – ie you can not use it... (more)
category: Architecture | clicked: 7 | comment | | source: www.csharphelp.com
tags: Formatting, C#, String.Format, Format
2
Shouts

Date formatting in Sql server reporting services

posted by PraveenPraveen 1224 days, 12 hours, 43 minutes ago
Tuesday, January 12, 2010 8:41:30 PM GMT
When we work with reporting services, we come across with different requirements to display the date in different formats. So, we need to know the formats we can give to get required value. Sql server reporting services supports different formats as T-sql and C# does. So, I just want to give the valid formats I use to display the date in required format. =Format(Fields!DateCreated.Value, “M/d/yy”) - 3/14/1986 =Format(Fields!DateCreated.Value, “d-MMMM-yy”) - 14-March-86 =Format(Fields!Dat... (more)
category: Data | clicked: 0 | comment | | source: praveenbattula.blogspot.com
tags: SQL Server, Formatting, Date, Reports
8
Shouts

Data Formatting in sql server reporting services

published 1226 days, 21 hours, 17 minutes ago posted by PraveenPraveen 1228 days, 20 hours, 6 minutes ago
Sunday, January 10, 2010 12:07:57 PM GMT Friday, January 08, 2010 1:18:32 PM GMT
In Sql server reporting services the formatting the data is pretty much simple as we have plenty of built in options available for percentage, numbers, decimal, currency etc. So, just them to data format and display the data as you want. Below are most commonly use format for the usual reports.c – Currencyd – Decimaln – Numberp – Percentage. If you want two decimal places in decimal number then in the format option [Text box properties -> format] then the  format should be d2. In percentage if you want ... (more)
category: Data | clicked: 0 | comment | | source: praveenbattula.blogspot.com
tags: SQL Server, Formatting, Reports