default date format?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
GustavoWoltmann
New Member
New Member
Posts: 2
Joined: Wed Feb 24, 2016 6:44 pm

default date format?

Post by GustavoWoltmann »

Hi there,
First of all thanks a bunch for making this great CMS.

I would like to know, how do I change default date format? Which is appearing in content?

I have put “Updated Content” tag on my home page but the date which it is showing is something like “Modified: 2006-11-26 10:49:45”

But I want it to be appeared as “Modified: 26-Nov-2006” and time as “10:49:45 am/pm” if possible.

Please guide me how do I do it, it’s my humble request.

Thank a billion in advance
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: default date format?

Post by Jeff »

You can check the tag help by going to Extensions > Tags and then clicking on the specific tag name.

If you are referring to {modified_date}, the help says it uses the following param.

Code: Select all

(optional)format - Date/Time format using parameters from php's [url=http://php.net/strftime]strftime[/url]function. See [url=http://php.net/strftime]here[/url]for a parameter list and information.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: default date format?

Post by velden »

And note that CMSMS has a default 'Date Format String' setting too:

Site Admin -> Settings - Global Settings ->General Settings (tab).

Though I don't know if this specific tag uses that setting.
Post Reply

Return to “The Lounge”