Date object manipulation

18 views
Skip to first unread message

Mike Rodriguez

unread,
Oct 12, 2009, 2:04:26 PM10/12/09
to Oracle Service Bus
Hello Jeff,

Hope everything it's fine.
Now with another question.

If you check the yahoo group, the question it's also there.

Anyway, I'm right now trying to manipulate a xs:dateTime object in
Xquery. The main operation that I'm pretending to do, it's to add a
day to the date that I got from the other XML.

I have something like this:

let $arrivalDate := xs:dateTime(/ns:HotelResearch/ns:Reservation/
ns:arrivalDate)
return
<information>
<arrival>{$arrivalDate }</arrival>
<departure>{$arrivalDate + xs:dateTime(P1D)}</departure>
</information>

But that doesn't work, it says that the "add" method cannot be invoked
on this kind of objects.

Any idea?


Please help me out!
You know I'll appreciate your time and your help!

Best regards,
_
Mike
Reply all
Reply to author
Forward
0 new messages