Hi,
I have a .Net webservice which takes a Datetime object as parameter
Now I am trying to create a php client for the above webservice.
How should I send a DateTime value to this webservice
The following code always produces "1\1\2001 12:00:00", no matter what type of value is sent to the web service call. Even if i pass a string value or empty value i get the same 1\1\2001 result.
Any help?
I have a .Net webservice which takes a Datetime object as parameter
Code:
[webmethod] public string GetDateTime(DateTime dt) { return dt.ToString(); }
How should I send a DateTime value to this webservice
Code:
$dateTime1 = new DateTime("now", new DateTimeZone('UTC')); $d = $client->GetDateTime($dateTime1); echo $d->GetDateTimeResult;
Any help?