Skip to content

Instantly share code, notes, and snippets.

@makbeta
Created November 30, 2012 02:20
Show Gist options
  • Select an option

  • Save makbeta/4173379 to your computer and use it in GitHub Desktop.

Select an option

Save makbeta/4173379 to your computer and use it in GitHub Desktop.
Luminate CMS: Parse date from RSS feed
<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