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 )

11659 put(a) pogledan, 6 odgovor(a) 23.10.2012. 11:01:36Kreirao(la) johnsamuel
johnsamuel

johnsamuel

23.10.2012. 11:01:36
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?
Ovaj sadržaj još nije ocijenjen. 
429 Reputacija 46 Ukupno objava
khorvat

khorvat

23.10.2012. 11:08:24
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Zoomicon

Zoomicon

11.12.2012. 14:12:24
can one change only the format strings they want (e.g. for time) at web.config?
Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava
khorvat

khorvat

11.12.2012. 14:38:11
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Zoomicon

Zoomicon

13.12.2012. 8:03:45
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?
Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava
khorvat

khorvat

14.12.2012. 8:42:33
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava