You just use the subtraction operator "-" with operands of type xs:date, this
returns a dayTimeDuration, which you can turn into an integer number of days by
dividing it by xs:dayTimeDuration('P1D').
Michael Kay
Saxonica
On 12 Apr 2013, at 18:04, sudheshna iyer wrote:
> Hello Team,
>
> I need a xquery function which takes two dates and return number of days that
> lapsed between these two dates. Input to this function can be a 2 strings of
> type "mm/dd/yyyy 00:00:00".
>
> Can any of you have a function handy to do this?
>
> Thank you very much in advance.
>
>
>
> _______________________________________________
> [email protected]
> http://x-query.com/mailman/listinfo/talk
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk