b9d28467e1c8db74da3e252a0d5fadb494b0efa3
FAQ/Questions/Add-Formatting-Options.md
| ... | ... | @@ -25,20 +25,11 @@ We can also use an Izenda Format object as an argument. Below is the method of a |
| 25 | 25 | |
| 26 | 26 | ##Example 3 - International Date Formats |
| 27 | 27 | |
| 28 | -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. |
|
| 28 | +In this example, we show how to set the formats when using an International Date format. This example is for the European Date format. |
|
| 29 | 29 | |
| 30 | 30 | ```csharp |
| 31 | -public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
|
| 32 | -{ |
|
| 33 | - // Configure settings |
|
| 34 | - |
|
| 35 | - // Add Custom Setting below license key and connection string setting |
|
| 36 | - public override void ConfigureSettings() |
|
| 37 | - { |
|
| 38 | - AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 39 | - AdHocSettings.Formats.Add("EuroDate", "{0:dd/MM/yyyy}"); |
|
| 40 | - } |
|
| 41 | -} |
|
| 31 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 32 | + AdHocSettings.Formats.Add("EuroDate", "{0:dd/MM/yyyy}"); |
|
| 42 | 33 | ``` |
| 43 | 34 | |
| 44 | 35 | You can use this example as a template for other date formats as well. |