To solve the cannot marshal <type 'datetime.date'> objects
error, first convert the date into ISO 8601 format, and then pass it as an object to xmlrpclib
.
For example:
dob = form.date_of_birth
xmlrpc_dob = dob.strftime("%Y%m%dT%H:%M:%S")
For more details you can read the official Python documentation of xmlrpclib
.