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
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?
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-CollinsSoftware AG (UK) Ltd.
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);