Page 1 of 1

formatting cms_date_format? (solved)

Posted: Thu Sep 09, 2010 8:07 pm
by npd1164
There's a notice in Admin/Extensions/Tags/current_date stating that current_date is being deprecated and to use {$smarty.now|cms_date_format}  but with no explanation of how to use that to display or format date portion.  There's also no Tags help for the cms_date_format entry.

current_date accepts an optional php strftime parameter to custom format its output and, in my case, I'm able to output just the current year.

Anyone point out how to do the same using the  {$smarty.now|cms_date_format} method?

Thanks in advance!

Re: formatting cms_date_format?

Posted: Fri Sep 10, 2010 3:39 pm
by stevew
Site Admin -> Global Settings -> Date Format String

Re: formatting cms_date_format?

Posted: Fri Sep 10, 2010 3:49 pm
by tyman00
{$smarty.now|cms_date_format:"%Y-%m-%d"}

Re: formatting cms_date_format?

Posted: Fri Sep 10, 2010 9:32 pm
by npd1164
tyman00 wrote: {$smarty.now|cms_date_format:"%Y-%m-%d"}
THANKS!!!!