7fdc27c586c7454d89d5c998bf917067d6a0e299
How-do-I-use-ExtendedFormats-for-European-Date-Formats.md
| ... | ... | @@ -0,0 +1,21 @@ |
| 1 | +#How do I use ExtendedFormats for European Date Formats? |
|
| 2 | + |
|
| 3 | +[[_TOC_]] |
|
| 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. |
|
| 6 | + |
|
| 7 | +```csharp |
|
| 8 | +public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
|
| 9 | +{ |
|
| 10 | + // Configure settings |
|
| 11 | + |
|
| 12 | + // Add Custom Setting below license key and connection string setting |
|
| 13 | + public override void ConfigureSettings() |
|
| 14 | + { |
|
| 15 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 16 | + AdHocSettings.Formats["EuroDate"] = "{0:dd/MM/yyyy}"; |
|
| 17 | + } |
|
| 18 | +} |
|
| 19 | +``` |
|
| 20 | + |
|
| 21 | +You can use this example as a template for other date formats as well. |
|
| ... | ... | \ No newline at end of file |