This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes One month Extra get added during method call in java. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "One month Extra get added during method call in java." Watch "One month Extra get added during method call in java." New topic
Author

One month Extra get added during method call in java.

arvind kushwaha
Ranch Hand

Joined: Aug 12, 2011
Posts: 32
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

Joined: Oct 13, 2005
Posts: 43381
    
  32
2011-09-2011? Are you sure about that?

I presume you want 8 to mean August?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: One month Extra get added during method call in java.
 
It's not a secret anymore!