Skip to content

Instantly share code, notes, and snippets.

@makbeta
Created November 30, 2012 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makbeta/4173289 to your computer and use it in GitHub Desktop.
Save makbeta/4173289 to your computer and use it in GitHub Desktop.
Luminate CMS: How to display a date field in yyyy-mm-dd format as an attribute of an html tag
<t:set id="pdate" value="year(date)" /><t:set id="pdate" value="concat(pdate, '-')" /><t:set id="temp1" value="month(date)+1" />
<t:set id="pdate" value="concat(pdate, temp1)" /><t:set id="pdate" value="concat(pdate, '-')" />
<t:set id="temp2" value="day(date)" /><t:set id="pdate" value="concat(pdate, temp2)" />
<time datetime="${pdate}"><t:value id="date" format="5" /></time>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment