Set datetime format on webapge?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/14/2013 9:31:46 AM
Gravatar
Total Posts 83

Set datetime format on webapge?

Hi,

MojoPortal is showing english datetime and 12h format  with pm/am. How do I change this? I have checked the Administrator Menu > Site List > Site Settings.

In this case I need to set it to Swedish and 24h format.

This applays to not only the mojoportal itself but also controls like uploadFileControl, blogControl and so on.

BestRegards

11/14/2013 9:53:43 AM
Gravatar
Total Posts 18439

Re: Set datetime format on webapge?

By default dates are formatted according to the web browser language settings, but you can force the site to use a specific culture/language

Hope that helps,

Joe

11/15/2013 1:34:19 AM
Gravatar
Total Posts 83

Re: Set datetime format on webapge?

Thanks,

I have no set this in web.config : 

<add key="site1culture" value="sv" />
    <add key="site1uiculture" value="sv" />
    <add key="UseCultureOverride" value="true" />

But this does not help?

My webpage is located at Data\Sites\1 so I supos I could use the site1 prefix?

PS. The IIS website is restarted after the change to be sure.

 

11/15/2013 2:49:02 AM
Gravatar
Total Posts 83

Re: Set datetime format on webapge?

I have also kopied all resx files ending on .sv.resx to the correct folder of the webpage.

11/15/2013 3:48:30 AM
Gravatar
Total Posts 83

Re: Set datetime format on webapge?

I found the problem, I have to set sv-SE instead of sv. 

Thanks for your help!

You must sign in to post in the forums. This thread is closed to new posts.