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.  getLastModified() Date format

    Posted Tue July 01, 2003 04:30 PM

    Hi!

    I called .getLastModified() on an object. It returns “Tue, 01 Jul 2003 11:46:44 GMT”.
    The date is always returned in this format(“EEE, DD MMM yyyy hh:mm:ss z”)?

    Is possible to change this format?


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 2.  RE: getLastModified() Date format

    Posted Wed July 02, 2003 11:15 AM

    No it is not possible to change the format as far as I know. The format of the date is per RFC822 (updated in RFC1123).

    Hope this helps.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 3.  RE: getLastModified() Date format

    Posted Wed July 02, 2003 11:59 AM

    It’s OK then, because I will format it always like this:

      
    String dateString=taminoConnection.retriveXML(String.valueOf(min));			
    
    SimpleDateFormat format=new SimpleDateFormat("EEE, DD MMM yyyy hh:mm:ss z");
    ParsePosition pos = new ParsePosition(0);
    Date date=format.parse(dateString,pos);
    

    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management