Page 1 of 1

default date format?

Posted: Thu Feb 25, 2016 8:40 pm
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

Re: default date format?

Posted: Fri Feb 26, 2016 4:53 am
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.

Re: default date format?

Posted: Mon Feb 29, 2016 12:26 pm
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.