Created
November 30, 2012 02:20
-
-
Save makbeta/4173379 to your computer and use it in GitHub Desktop.
Luminate CMS: Parse date from RSS feed
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:list id="rss.channel.item"> | |
| <t:set id="myDate" value="substring(pubDate, 5, 7)" /> | |
| <t:set id="myMonth" value="substring(pubDate, 8, 11)" /> | |
| <t:set id="myYear" value="substring(pubDate, 12, 16)" /> | |
| <t:set id="myHour" value="substring(pubDate, 17, 19)" /> | |
| <t:set id="myMinutes" value="substring(pubDate, 20, 22)" /> | |
| <p>${pubDate} or ${myDate}/${myMonth}/${myYear} ${myHour}:${myMinutes}</p> | |
| </t:list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment