wood burning stoves 2.0*
The moose likes JDBC 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
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: 38087
    
  22
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.
 
Similar Threads
Looking for a article or tutorial on setting up a web service client
how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar
Server side validation to be shown in Javascript
bind data type XMLGregorianCalendar to Calendar
DST issue with GregorianCalendar