I use XSLT 1.0 and I did it with converting them to numeric format (number
function).
Thanks
----- Ursprüngliche Message -----
Von: Andrew Welch <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com>
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc:
Gesendet: 10:35 Dienstag, 20.Dezember 2011
Betreff: Re: [xsl] how to compare dates
On 20 December 2011 09:29, henry human <henry_human(_at_)yahoo(_dot_)de> wrote:
Hi
I want to compare to dates with each other:
ItemDueDate which has YYYY-MM-DD format and the 20110101.
When the ItemDueDate is bigger than 20000101,I fill two leading zero in the
result and display the result in 00YYYYMMDD format.
Thanks for any help
You can either:
- convert both to xs:date, do the compare, output the result
- convert both to integers in the format yyyymmdd, do the compare,
output the result
--
Andrew Welch
http://andrewjwelch.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--