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.


#TechXchangePresenter
 View Only
  • 1.  Calculate date difference

    Posted Thu March 18, 2004 07:46 PM

    Anyone know the best way to calculate the difference between 2 dates? The PSUtilities.date:calculateDateDifference service gives incorrect results around April 4, 2004 so I can’t use it.
    Thanks!


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Calculate date difference

    Posted Tue April 27, 2004 11:56 PM

    Bonnie,

    Please let me know for which date inputs, that particular service is’nt working.

    Thanks,

    Pauly


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Calculate date difference

    Posted Wed April 28, 2004 01:14 PM

    The problems start around April 4, 2004. For example the difference between April 2 and April 3 comes back as 1 day, but the difference between April 2 and April 5 comes back as 2 days instead of 3.
    We created a custom SQL select (select dateDiff (day ,?,?)) to calculate the difference.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Calculate date difference

    Posted Mon January 28, 2019 09:32 AM

    Hi ,
    I am totally new here in webMethods and trying to use the calculateDateDifference built in service but getting the below error. can someone please let me know the correct start and end date pa tern for this service.
    Could not run ‘inbuilt’
    com.wm.app.b2b.server.ServiceException: [ISS.0086.9249] Missing Parameter: startDatePattern

    Server error occurred
    Launch completed: 2019-01-28 06:29:23.574
    Launch started: 2019-01-28 07:14:51.737
    Configuration name: inbuilt
    Configuration location: U:/MyWorkSpace/.metadata/.plugins/org.eclipse.debug.core/.launches/inbuilt.launch

    Could not run ‘inbuilt’
    com.wm.app.b2b.server.ServiceException: [ISS.0086.9249] Missing Parameter: startDatePattern

    Server error occurred
    Launch completed: 2019-01-28 07:15:04.096


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Calculate date difference

    Posted Mon January 28, 2019 02:33 PM

    Hi Aryan,

    depending on what your source and target date is formatted like you will have to apply the appropriate date.

    The Syntax of the pattern follows the underlying java.util.date-Classes available in the Java API.
    See Details in the IS Built-In-Services Reference.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 6.  RE: Calculate date difference

    Posted Mon February 04, 2019 05:46 AM

    Hi Aryan ,

    As the error clearly telling startDatePattern is missing. For this service you need to pass 4 parameter .


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 7.  RE: Calculate date difference

    Posted Mon February 04, 2019 06:36 AM

    Hi Aryan,

    If your start date is 01/01/2019, pattern should be like MM/dd/yyyy
    Similarly end date and its pattern.

    Regards,
    Sreekanth


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services