9b5d926937461189a10e74d02a81748cb62dd36a
FAQ/Questions/How-do-I-use-ExtendedFormats-for-European-Date-Formats.md
| ... | ... | @@ -1,8 +1,8 @@ |
| 1 | -#How do I use ExtendedFormats for European Date Formats? |
|
| 1 | +#How do I Use Custom Date Formats? |
|
| 2 | 2 | |
| 3 | 3 | [[_TOC_]] |
| 4 | 4 | |
| 5 | -In this example, we show how to set the formats when using an International Date format. This example is for the European Date format and needs to be placed in the ConfigureSettings() section of your global.asax file. |
|
| 5 | +In this example, we show how to set the formats when using an International Date format. This example is for the European Date format and needs to be placed in the ``InitializeReporting()`` method of your global.asax file. |
|
| 6 | 6 | |
| 7 | 7 | ```csharp |
| 8 | 8 | public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| ... | ... | @@ -13,7 +13,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 13 | 13 | public override void ConfigureSettings() |
| 14 | 14 | { |
| 15 | 15 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 16 | - AdHocSettings.Formats["EuroDate"] = "{0:dd/MM/yyyy}"; |
|
| 16 | + AdHocSettings.Formats.Add("EuroDate", "{0:dd/MM/yyyy}"); |
|
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | ``` |