Hi friends,
can anyone know how to pass the date from android application
into .net webservice?
i want to pass date from android into .net via webservice.
this is my code...
SimpleDateFormat dateFormater = new SimpleDateFormat("MM/dd/yyyy");
Date myDate = dateFormater.parse("12/03/2011");
java.sql.Date sqltDate = new java.sql.Date(myDate.getTime());
request = new SoapObject(NAMESPACE,methodName);
envelope.dotNet = true;
request.addProperty("InputDate",sqltDate);
but i am getting error message like "cannot serialize :
2011-12-03" .
how can i solve this? any idea?
Note : in .net DateTime datatype used to retrive this.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en