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!
formatting cms_date_format? (solved)
formatting cms_date_format? (solved)
Last edited by npd1164 on Fri Sep 10, 2010 9:32 pm, edited 1 time in total.
Re: formatting cms_date_format?
Site Admin -> Global Settings -> Date Format String
Re: formatting cms_date_format?
{$smarty.now|cms_date_format:"%Y-%m-%d"}
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Re: formatting cms_date_format?
THANKS!!!!tyman00 wrote: {$smarty.now|cms_date_format:"%Y-%m-%d"}