I'm trying to evaluate 2 dates in my DVWP, @StartDate (date and time field) and ddwrt:Today(). My expression looks like this:
<xsl:when>
<xsl:choose>
<xsl:when test="ddwrt:FormatDateTime(string(@StartDate) ,1033 ,'M/d/yyyy HH:mm:ss') <= ddwrt:Today()">Closed</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="@TotalSeats = 0">Unlimited Seating</xsl:when>
<xsl:when test="@TotalSeats - @FilledSeats = 0 and @TotalSeats != 0">Currently Full</xsl:when>
<xsl:when test="@TotalSeats - @FilledSeats > 0 and @TotalSeats != 0"><xsl:value-of select="@TotalSeats - @FilledSeats" /> Seats Available</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
My issue is the initial when test vever evaluates correctly even though the dates and times are in the correct format from what I can tell. What am I missing here?