MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Date format  (Mono Support )

Viewed 10026 time(s), 6 post(s) 10/23/2012 11:01:36 AMby johnsamuel
johnsamuel

johnsamuel

10/23/2012 11:01:36 AM
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?
This content has not been rated yet. 
429 Reputation 46 Total posts
khorvat

khorvat

10/23/2012 11:08:24 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Zoomicon

Zoomicon

12/11/2012 2:12:24 PM
can one change only the format strings they want (e.g. for time) at web.config?
This content has not been rated yet. 
2793 Reputation 345 Total posts
khorvat

khorvat

12/11/2012 2:38:11 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Zoomicon

Zoomicon

12/13/2012 8:03:45 AM
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?
This content has not been rated yet. 
2793 Reputation 345 Total posts
khorvat

khorvat

12/14/2012 8:42:33 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts