IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Comparing the Duration between two xs:dateTimes

  • 1.  Comparing the Duration between two xs:dateTimes

    Posted Mon November 13, 2006 05:18 PM

    Hi,
    I’m trying to get the duration in days between a stored date and the current date and then check if these are greater than 10

    I’ve tried subtracting one from the other, but this feature isn’t implemented. I’ve also tried adding an xs:duration() of 10 days to the stored date and seeing if the resulting date is greater than the current date, but again the feature isn’t implemented.

    Does anyone have any ideas?

    Ryan


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: Comparing the Duration between two xs:dateTimes

    Posted Mon January 08, 2007 04:04 PM

    Hi,

    please see enclosed xquery that uses a user-defined function to add days to a date.

    Regards,
    Juliane.
    datexquery.txt (1.38 KB)


    #Tamino
    #webMethods
    #API-Management