Subject:select items based on the date Author:Curtis Bennett Date:09 Dec 2005 02:45 PM Originally Posted: 09 Dec 2005 02:41 PM
I am using an rss feed on my site and I would like to only show items that are no more than 5 days old.<br>
So, if today is 12/9/05 then I don't want to show any articles older than 12/4/05. Can this be done with XSLT?
The date comes in like this:
Wed, 07 Dec 2005 01:42:52 -0700
Subject:select items based on the date Author:Minollo I. Date:09 Dec 2005 03:16 PM
XSLT 1.0 doesn't have any specific knowledge about dates or time; the EXSLT library provides some functionality that may be enough for what you are looking for: http://www.exslt.org/date/index.html