Funky
Funky

Reputation: 13610

XSLT date comparison not working

I am trying to implement an XSLT date comparison but doesn't seem to work, here is my code:

<xsl:variable name="CreatedDate" select="@createDate"/>
                <xsl:variable name="IDAppendedDate" select="2012-01-01" />

                 <b>date: <xsl:value-of select="$CreatedDate"/></b> 

                 <xsl:if test="$CreatedDate > $IDAppendedDate">
                   <h2> mooooooooooooo </h2>
                </xsl:if>

thanks

Upvotes: 1

Views: 446

Answers (1)

KoViMa
KoViMa

Reputation: 382

Maybe you could apply some XSLT date/time function to your IDAppendedDate instead of simple string value.

Upvotes: 1

Related Questions