[Solved] Date and time formatting

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

[Solved] Date and time formatting

Post by janaf »

I am having some problems with date and time formatting. I read somewhere that the cms_date_format

Code: Select all

{$entry->mydate|cms_date_format: '%d-%m-%Y'}
while "cms_date_format" is deprecated?

Code: Select all

{$mydate|date_format:'%d-%m-%Y'}
I am having problems with the formatting codes.... Are they not the Smarty standard codes? I am not using English locale and can not get the local formatting working. I can see my locale in the HTML but the date format is still English, for example when using

Code: Select all

{$mydate|date_format:'%c'}
Last edited by janaf on Sun Nov 20, 2011 6:23 pm, edited 1 time in total.
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

Re: Date and time formatting

Post by janaf »

I have not tested every option but most of the standard Smarty codes work for me.

They are available here:
http://www.smarty.net/docsv2/en/languag ... ate.format
Post Reply

Return to “The Lounge”