current_date tag
Welcome to the official CMS Made Simple documentation pages. We make a continuous effort to keep the information here up to date! However, dear user, we highly value your assistance in the process.
We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.
However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.
This function is deprecated!
Use now: {$smarty.now|cms_date_format}
Purpose
Prints the current date and time. If no format is given, it will default to a format similar to 'Jan 01, 2004'.
How to use?
Insert the tag into your template/page like:
- {current_date}
Available parameters
- format - Date/Time format using parameters from php's strftime function. See here for a parameter list and information.
- ucword - If true return uppercase the first character of each word.
- assign - Assign the results to the named smarty variable.
Syntax examples
- {current_date format="%A %d-%b-%y %T %Z"}
Previous page: content_image tagNext page: description tag




