Mono Support Date format 

Viewed 11760 time(s), 6 post(s), 10/23/2012 11:01:36 AM - by johnsamuel
10/23/2012 11:01:36 AM
429 Reputation 46 Total posts

We want to set all date forms to UK style dd/mm/yyyy. Is there a global setting to achieve this. If not what's the best way to achieve it?

1
10/23/2012 11:08:24 AM
15993 Reputation 2214 Total posts

Hi,

can you please check the MSDN and try to use the ASP.NET built-in globalization functionality that MonoX leverages. Basically you can use the web.config globalization configuration to set the UI culture, if you need custom culture setting let us know and we will provide you with further guidance.

Regards

2
12/11/2012 2:12:24 PM
2793 Reputation 345 Total posts

can one change only the format strings they want (e.g. for time) at web.config?

3
12/11/2012 2:38:11 PM
15993 Reputation 2214 Total posts

There is no global option for setting date or time format in ASP.NET, you will need to create a custom culture in order to change the format or you need to set custom date & time format on e.g. BasePage PreInit or Init.

Regards

4
12/13/2012 8:03:45 AM
2793 Reputation 345 Total posts

is there any way to declaratively register a custom culture in ASP.net or tell it to get the server settings regarding date/time formatting?

5
12/14/2012 8:42:33 AM
15993 Reputation 2214 Total posts

Yes there is, please take a look at the following links:

http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx
http://stackoverflow.com/questions/1304507/create-custom-culture-in-asp-net

Regards

6
This is a demo site for MonoX. Please visit Mono Software for more info.