This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Selection based on date comparison
- From: Jeff Beadle <Jbeadle at manh dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 30 Nov 2001 15:57:04 -0500
- Subject: RE: [xsl] Selection based on date comparison
- Reply-to: xsl-list at lists dot mulberrytech dot com
what do you mean by "depending on where it is run"? If you mean locale,
then I agree. But I'm not sure if that would even, matter ... you'd be
constructing two Date object with the same locale.
-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk]
Sent: Friday, November 30, 2001 3:41 PM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Selection based on date comparison
] <msxsl:script language="JScript" implements-prefix="date"><![CDATA[
] function a_is_greater_than_b(a,b){
] return ((new Date(a)) > (new Date(b)));
] }
] ]]></msxsl:script>
although presumably (?) that definition will return either true() or
false() for
a_is_greater_than_b(01/02/2001,02/01/2001)
depending on where it is run.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list