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.  DateTimeFormat problem

    Posted Mon September 22, 2003 11:33 PM

    This keeps getting deleted…hopefully this one sticks!

    Here’s the issue…
    I am unable to get the pub.dateTimeFormat service to correctly give me a “+” or “-” for the time zone after trying several combinations.

    Here is what I am doing:
    inString: 20031230T11:22:33+11:00
    currentPattern: yyyyMMdd’T’HH:mm:ss hh:mm
    newPattern: yyyyMMdd HH:mm:ss ‘GMT’[+/-]hh:mm (where [+/-] should be what is passed in on the inString)

    The new format
    should be: 20031230 11:22:33 GMT+11:00
    I am getting: 20031230 11:22:33 GMT 11:00

    How do I get the +/- to show up in the time format like it is being passed in? There are a few time zones that are - of GMT, so I want to differentiate. Is there some type of wildcard or regex-like character that can be used to get the +/-? Thanks…


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


  • 2.  RE: DateTimeFormat problem

    Posted Tue September 23, 2003 07:06 AM

    Try below pattern

    “yyyy-MM-dd HH:mm:ss z”


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


  • 3.  RE: DateTimeFormat problem

    Posted Tue September 23, 2003 06:47 PM

    Brian,

    Your post is still here [url=“wmusers.com”]wmusers.com

    Are you perhaps viewing the message board using either the “Quick Search (1 Day)” or “Quick Search (1 Week)” views? If so, you would not be able to see a post older than one day or one week respectively.

    Mark


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