axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramaswamy, Muthu" <>
Subject Date Serialization by Apache Client.
Date Thu, 14 Nov 2002 00:08:45 GMT
Hi All-

When I pass the Date with time component set to 00:00:00, Apache Client
after serialization adds 8:00 hours to the time portion?

Do I have specify any special format or is it due to some kind of bug in

Here is a sample code I am using on the Axis Client

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String textDate = "2002-11-11";  //required 10/29/2002 7:20:59 PM.
Date requestDt = null;

   requestDt = sdf.parse(textDate);
catch (Exception e)
     System.out.println("Exception in Parsing Date");

When I pass the above date, after Serialization, the output is:

I would expect to see 2002-11-11T00:00:00.000Z . Appreciate any input to
resolve the problem.




View raw message