Page 1 of 1

[Solved] Date and time formatting

Posted: Sun Nov 13, 2011 10:54 am
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'}

Re: Date and time formatting

Posted: Sun Nov 20, 2011 6:23 pm
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