I’m having an issue when using Paypal’s CreateInvoiceRequest so the question is:
What is the datetime format used by CreateInvoiceRequest.dueDate (or CreateAndSendInvoiceRequest)?
All the documentation says is:
xs:dateTime (Optional) Dateon which the invoice payment is due.
Thanks in advance.
Edit:
Using the format specifier “s” (ex: 2009-06-15T13:45:30) works for Paypal.
It is most likely ISO 8601, see http://www.w3.org/TR/xmlschema-2/#isoformats . Use
XmlConvert.ToString(DateTime.Now)to see how it looks.However, how do you consume PayPal’s web-service? You may find Visual Studio’s integrated web-service referencing tools useful, such as
[Your Project in Solution Explorer] -> References -> [Right Click] -> Add Service Reference, in such a case the web-service wrappers will be generated automatically for you.