Hi,

I recently had this problem.
I resolved it with this workaround, by working with dateTime unstead date :

xs:dateTime('2012-08-29T00:00:00') - xs:dayTimeDuration('P1D')

Then transform the result in date.

Regards


2012/12/10 Florent Georges <[email protected]>

>   Hi,
>
>   I guess I am missing the obvious, but the following query:
>
>     xs:date('2012-08-29') - xs:dayTimeDuration('P1D')
>
> when run in QConsole, returns 2012-08-27, where I would have
> expected 2012-08-28.
>
>   Do I do anything wrong?
>
>   Regards,
>
>
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>



-- 

*Pascal **CADET*
06 12 97 02 53
www.pressinnov.com
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to