Created
November 30, 2012 01:58
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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