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

Date and Time pattern

  • 1.  Date and Time pattern

    Posted Wed October 27, 2010 07:55 PM

    Hello,

    I’m trying to specify the patter for the data/time format below. Also, are there any method that would easily convert the GMT to a local timezone?

    Thu, 09 Sep 2010 20:37:10 GMT

    I thought it would be “EE, dd MM yyyy HH:mm:ss z” but got an invalid pattern error. Would it be better to substring so that I would be working with “Sep 2010 20:37:10 GMT” instead?


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


  • 2.  RE: Date and Time pattern

    Posted Wed October 27, 2010 11:36 PM

    use pub.date:dateTimeFormat and pass inputs like below.

    inString : 06:30:20 GMT (date time format can be anything but pass GMT after that)
    currentPattern: hh:mm:ss z (for above string)
    newPattern: hh:mm:ss z (z-default for PST can do the calculation for your local timezone like z+3 … )


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