Subject: RE: [xsl] Compare Dates From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Tue, 12 Jun 2001 10:55:29 +0100 |
> I want to compare two dates to find out which comes first. > 2000-12-19 > What I don´t want to do is to compare each number, if I validate the > formate is there a XSL function to see which date comes first?????? If the dates are in ISO format just strip the hyphens and compare as numbers: xsl:if test="translate($date1, '-', '') < translate($date2, '-', '')" Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Compare Dates, Chris Bayes | Thread | RE: [xsl] Compare Dates, Julian Reschke |
RE: [xsl] Appending output to multi, Michael Kay | Date | [xsl] Configuring Saxon as the Exte, Pywell, Andrew |
Month |