I have RSS viewer webpart inserted in SharePoint page. I have to show only today's feed, so have to compare todays date in XSL file which is already provided by the webpart. Below is the code of the same.
<xsl:template name="RSSMainTemplate.description">
<xsl:param name="DescriptionStyle"/>
<xsl:param name="CurrentElement"/><div id="{$CurrentElement}" class="description" align="{$rss_alignValue}" style="{$DescriptionStyle} text-align:{$rss_alignValue};">
<xsl:choose>
<!-- some RSS2.0 contain pubDate tag, some others dc:date -->
<xsl:when test="string-length(pubDate) > 0">
<xsl:variable name="pubDateLength" select="string-length(pubDate) - 3" />
<xsl:value-of select="ddwrt:FormatDate(substring(pubDate,0,$pubDateLength),number($rss_LCID),3)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ddwrt:FormatDate(string(dc:date),number($rss_LCID),3)"/>
</xsl:otherwise>
</xsl:choose>
so how to compare it with today's date (only day i.e 13th feb).