Date Format

Content Management Server

    Sponsored Links

    Next

  • 1. Image place holder
    Hi, I am a problem with image place holder. In fact i have my code like this <tr> <td> here is my image place </td> <td> here is a text place holder</td> </tr> when the image place holder is null/nothing the <td> tag leave a space, which i don't want to happen. Can any one help how i can test is the image place holder is nothing so that i can prevent the <td> tag to appears Thanks in advance Mirza
  • 2. mcms 2002: about outputcache
    hi everyone, I have put the following line in my template file: <%@ OutputCache Duration="600" Location="Server" VaryByParam="None" VaryByCustom="CMSPosting"%> but all pages generated from the template are the same during the cache time, Can anyone tell me why? thanks a lot in advance! zch
  • 3. CMS and MSIB
    Hi, I begin to work in a project based on MSIB(Microsoft Solution Framework) and i m a question about integration of CMS and CS(Commerce Server). Is it possible to view product properties defined in Commerce Server Catalog and modify them from CMS? View from "page property -> custom attribute" in CMS. Ther is a way to list product property defined in CS Catalog from "page property -> custom " in CMS
  • 4. Knowing the Right Group of a logged user
    Hi all, I would like to know if there is a way to know what is the kind of MCMS User Role a logged user belongs. For example, i created a User Groups my_editors of kind Editors MCMS User Role, and I put in this group an user called for example cmsEditor. I would need to know if there is a way to get, by the name of the user (cmsEditor), the MCMS User Role (Editors) the Group the Right Group this user is part (my_editors) is of the kind of. Thanks and regards Elena

Date Format

Postby bWljayBtYXJyaW90dA » Thu, 04 Aug 2005 20:01:01 GMT

We are having problems with one of our pages in MSCMS 2002 SP1a
The data in the DB is in UK Date format, but when it is displayed on the 
page a conversion is taking place and it is being shown in US format.
We have checked the server and cannot see where this setting is declared.
Is there a file I need to amend to set the right date format for the site.

Cheers

Re: Date Format

Postby Stefan [MSFT] » Fri, 05 Aug 2005 02:08:14 GMT

Hi Mick,

are you talking about a date in one of the MCMS object properties like the 
start date or the last modified date?
Or are you talking about a date stored in clear text in a custom property or 
in a placeholder?

Thanks,
Stefan

-- 
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS:  http://www.**--****.com/ 
----------------------









Re: Date Format

Postby bWljayBtYXJyaW90dA » Fri, 05 Aug 2005 17:06:05 GMT

Hi Stefan
It is text displayed in a placeholder that is read from a SQL 2000 database.
The text is in the correct format in the database but not when displayed.
It also looks as if CMS was installed without the regional settings of the 
operating system being setup correctly.

Cheers

Mick








Re: Date Format

Postby Lim Mei Ying [MVP] » Fri, 05 Aug 2005 17:24:04 GMT

Hi

The date and time format follows the information in the regional settings of 
the server. Based on your description, it seems that the value returned by 
System.Globalization.CultureInfo.CurrentCulture.Name property would probably 
be "en-US". You could modify this by either
1. changing the current culture or
2. manually specifying the date format.

To change the current culture, you could set the date format in the Control 
Panel | Regional and Language Options dialog. Trouble is, we are working 
with a web app, so you've got to change these settings for the ASP.NET 
worker process (for details, see:  http://www.**--****.com/ 
article is also applicable for ASP.NET). You could also change the culture 
settings using code:

System.Threading.Thread.CurrentThread.CurrentCulture = new 
System.Globalization.CultureInfo("en-GB", false);

or, set it in the web.config file:
<configuration>
   <system.web>
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" 
culture="en-GB"/>
    </system.web>
</configuration>

There's also another method that involves changing the Session.LCID 
property. More on that method here: 
 http://www.**--****.com/ 

Alternatively, you could use the DateTime.ToString() method to define the 
specific format that you wish to display the date in.
e.g. posting.LastModifiedDate.ToString("dd MMM yyyy");

--- 
regards
Mei Ying
---
Blog:  http://www.**--****.com/ 
Book:  http://www.**--****.com/ 
Contact:  XXXX@XXXXX.COM 
---











Re: Date Format

Postby Stefan [MSFT] » Fri, 05 Aug 2005 22:58:10 GMT

Hi Mick,

what type of placeholder is this?
What placeholder control are you using?
What type of conversion does this placeholder control do? Using which 
conversion method?

Cheers,
Stefan

-- 
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS:  http://www.**--****.com/ 
----------------------














Return to Content Management Server

 

Who is online

Users browsing this forum: No registered users and 11 guest