webMethods

webMethods

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.  Converting CST TO EST TimeZone in webmethods

    Posted Tue June 20, 2023 03:11 AM

    Hi All,

    Im Trying to convert the time to EST but its not working.
    I Have used getCurrentDateString Service to check if im Getting datetime in EST.
    i Have given input paramters as below
    pattern: yyyy-MM-dd HH:mm:ss.SSSZZZ
    TimeZone: EST or CST
    but the problem is im getting the sameoutput when im passing either EST or CST.
    i Have tried other time zones they are coming correct.

    Also please suggest how can we convert any datetime to EST in webMethods using a flow service.


    #Service-Designer
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Converting CST TO EST TimeZone in webmethods

    Posted Tue June 20, 2023 10:51 AM

    You can check Oracle timezone documentation for short timezone names . SoftwareAG doesn’t manage timezones, they let java do it. For CST, documentation indicates that it is depricated.


    #Service-Designer
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Converting CST TO EST TimeZone in webmethods

    Posted Tue June 20, 2023 01:28 PM

    The webMethods Integration Server Built-In Services document also notes this deprecation. Perhaps you missed this when reviewing the doc during your troubleshooting :slight_smile:

    Note:
    Because some three-letter abbreviations can represent multiple time zones (for example, “CST”
    could represent both U.S. “Central Standard Time” and “China Standard Time”), all abbreviations
    are deprecated. Use the full name or custom time zone ID formats instead.

    It also notes: “You can use the java.util.TimeZone.getAvailableIDs() method to obtain a list of the valid full name time zone IDs that your JVM version supports.”

    You may find EST5EDT and CST6CDT are available in your JVM.


    #webMethods
    #Integration-Server-and-ESB
    #Service-Designer


  • 4.  RE: Converting CST TO EST TimeZone in webmethods

    Posted Tue June 20, 2023 10:46 PM

    Hi Reamon ,

    Thank you for your suggestion.

    I Have used EST5EDT/CST6CDT as an input parameter for timezone in getCurrentDateService.

    Now Im getting currentDate in EST/CST Format.

    I also need to convert anydate from CST to EST Format.Could you please suggest on this.


    #webMethods
    #Service-Designer
    #Integration-Server-and-ESB


  • 5.  RE: Converting CST TO EST TimeZone in webmethods

    Posted Wed June 21, 2023 11:16 AM