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
  • 1.  extract time from dateTime

    Posted Wed October 06, 2004 05:56 PM

    Hello,

    i have dateTime element (DRealisation) and i need to do some queries about the time.
    More precisely I need to count tne number of documents whose time(DRealisation) is between 20h and 8h.

    I have tried to convert it in a String, but after, I need a substring function…
    Is there some functions for that. My application is still running and I can’t change my doctypes (can’t store year/hour,… separately).

    Thanks for those who will try to help me.


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: extract time from dateTime

    Posted Thu October 07, 2004 02:04 PM

    Hi,

    You can extract the time from an xs:dateTime instance by applying the substring-after() function. An example is given by the following query:

    substring-after(xs:string(xs:dateTime(“1999-05-31T13:20:00”)),“T”)

    To apply the substring-after() function, you have to cast the xs:dateTime instance to xs:string via the xs:string() constructor function. Please note that this approach is only possible in Tamino 4.2.

    Best regards,

    Thorsten Fiebig


    #webMethods
    #API-Management
    #Tamino


  • 3.  RE: extract time from dateTime

    Posted Tue October 12, 2004 03:52 PM

    Thanks.

    But I’m only in version 4.1.4
    Is it difficult to upgrade the tamino version ?


    #webMethods
    #Tamino
    #API-Management