formatting cms_date_format? (solved)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
npd1164
Forum Members
Forum Members
Posts: 28
Joined: Tue Apr 08, 2008 5:24 pm

formatting cms_date_format? (solved)

Post 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!
Last edited by npd1164 on Fri Sep 10, 2010 9:32 pm, edited 1 time in total.
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: formatting cms_date_format?

Post by stevew »

Site Admin -> Global Settings -> Date Format String
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: formatting cms_date_format?

Post by tyman00 »

{$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.
npd1164
Forum Members
Forum Members
Posts: 28
Joined: Tue Apr 08, 2008 5:24 pm

Re: formatting cms_date_format?

Post by npd1164 »

tyman00 wrote: {$smarty.now|cms_date_format:"%Y-%m-%d"}
THANKS!!!!
Post Reply

Return to “CMSMS Core”