aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 36453
    
  15
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
bind data type XMLGregorianCalendar to Calendar
Server side validation to be shown in Javascript
DST issue with GregorianCalendar
how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar
Looking for a article or tutorial on setting up a web service client