I am consuming an API, written with C#, in my PHP application. One of the arguments required for a particular method is of type DateTime
. I've tried the answers given in C# DateTime type over web service with PHP & SOAP, but none of those work.
I'm using the Soap extension. Also, the web service is written by a government agency, and I'm sure everyone who has consumed a government API knows how difficult it is to get them to change their arguments. So, I'd appreciate it if solutions wouldn't contain "talk to them and persuade them".