1

I am working on an enterprisewiki site collection, and I want to change the date format for the following message at the top of each wiki page:- enter image description here

I want to change the date format to be somrthing such as 15 Sep 2014 instead of the defualt 9/15/2014 .

Inside the default page layout I got the following code to display the message:-

<div class="ms-descriptiontext ewiki-margin">
                     <SharePoint:FormattedString FormatText="<%$Resources:wss,wikidiff_lastmodifiedby%>" runat="server">
                        <SharePoint:FormField id="modifiedFieldCtrl" ControlMode="Display" FieldName="Modified" runat="server"/>
                        <SharePoint:UserField id="editorFieldCtrl" ControlMode="Display" FieldName="Editor" runat="server"/>
                     </SharePoint:FormattedString>
                     <PublishingWebControls:EditPageHyperLink id="editPageLink" Text="<%$Resources:cms,enterwiki_editpage%>" runat="server"/>
                </div>

1 Answer 1

1

To change the locale for a specific site, go to the Site Settings area and select Regional Settings from the Site Administration group of links.

For more options you can check:

http://blog.funknstyle.com/2012/08/working-with-date-formats-in-sharepoint-2010/

5
  • but this approach will not allow me to get the following custom format "15 Sep 2014", is this right ? ?? Also i am using SP 2013 , where your link is referring to 2010, does this make any differences ?
    – John John
    Commented Sep 15, 2014 at 8:50
  • Otherwise you can use the custom columna s described in link. And change the field name to your custom fieldname.
    – Aanchal
    Commented Sep 15, 2014 at 8:52
  • 1
    You can try both the approaches.
    – Aanchal
    Commented Sep 15, 2014 at 8:52
  • but let say i created a new calculated columns ,what will be the formula i should use?
    – John John
    Commented Sep 15, 2014 at 9:05
  • You can check the link its defined there.
    – Aanchal
    Commented Sep 15, 2014 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.