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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Date logic..

  • 1.  Date logic..

    Posted 09/04/08 10:00 PM

    Anyone can share the info/service that returns the output with current Day and HH:mm…

    Meanwhile i will look into it too…

    TIA,
    RMG


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


  • 2.  RE: Date logic..

    Posted 09/04/08 11:45 PM

    pub.date:currentDate or getCurrentDateString.

    You specify the pattern to get the format you want.

    But that answer seems too obvious. What exactly are you looking for?


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


  • 3.  RE: Date logic..

    Posted 09/05/08 12:11 AM

    Thanks Reamon…

    No…i am looking to get actual Day (Sunday,Monday etc…) in the output…

    I tried to use Calendar.DAY_OF_WEEK…it returns output 7 but it should return 5??? so that based on this i can setup lookuptable and get the actual day name…

    Update:I got this working…

    Thanks,
    RMG


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


  • 4.  RE: Date logic..

    Posted 09/05/08 03:22 PM

    I know that you have resolved this but for the future references and other people, you can achive that by using “EEE d MMM yyyy HH:mm” format where EEE is the day on the week, “d” is the date and MMM is the month in three letters.


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


  • 5.  RE: Date logic..

    Posted 09/08/08 04:32 PM

    wow…nice trick and easy…Thank you Talha…


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


  • 6.  RE: Date logic..

    Posted 09/08/08 06:32 PM

    Wow, i have been searching this for a long time and this works. Thanks Talha


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


  • 7.  RE: Date logic..

    Posted 09/08/08 09:50 PM

    For posterity, the format strings that can be used with pub.date:currentDate or getCurrentDateString are documented in the built-in services reference and also in the Java doc for the SimpleDateFormat class.


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


  • 8.  RE: Date logic..

    Posted 04/30/09 05:10 PM

    I’m seeing something strange with this service.

    When we call it with the “EST” timezone on unix server container1, it returns the “CST” time (which is the timezone specified in my .profile althought that should not matter). When we call it on the same physical server’s container2, it returns the EST time correctly.

    Any idea what may be happening here? Does anyone know what java method is called by this pub.date:getCurrentDate WmPublic service?


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


  • 9.  RE: Date logic..

    Posted 04/30/09 06:44 PM

    Ok, just heard back from our Unix SA. Apparently, this server container is not running the “ntp daemon” which I suppose sync’s time across the enterprise. Here’s how to find out:

    $ ps -ef | grep ntp
    root 285 1 0 Nov 09 ? 36:02 /usr/lib/inet/xntpd


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


  • 10.  RE: Date logic..

    Posted 06/25/10 02:49 PM

    This is just what I need. Thanks to Talha and Reamon.


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