This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Selection based on date comparison
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 30 Nov 2001 20:41:17 GMT
- Subject: Re: [xsl] Selection based on date comparison
- References: <60A8664AEEB2D511B631000476AAB1A35F4387@ma-atl81>
- Reply-to: xsl-list at lists dot mulberrytech dot com
] <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