Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One month Extra get added during method call in java.

 
arvind kushwaha
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Team,

As i working with webservices call, at client side i need to pass the date in XMLGregorianCalendar. When i passing the date in XMLGregorianCalendar at client side, when the method receives same date at webservices side it added 1 month Extra .

EG:

When i pass the date from client side : 2011-08-27

At Server side it adds 1 month extra and gives the result : 2011-09-2011

At server side i am using Date as a datatype and at client side XMLGregorianCalendar.

Please help me out how to resolve this problem.???
 
Campbell Ritchie
Sheriff
Pie
Posts: 49405
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2011-09-2011? Are you sure about that?

I presume you want 8 to mean August?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic