xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] how to compare dates


Subject: Re: [xsl] how to compare dates
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 20 Dec 2011 09:35:07 +0000

On 20 December 2011 09:29, henry human <henry_human@xxxxxxxx> 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


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor