|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Selection based on date comparison
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@xxxxxxxxx] Sent: Friday, November 30, 2001 3:41 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








