2

is C# DateTime.UtcNow and php date("c") are equivalent

I doubt because when I soap both I get from

C# :

<dateDebutAction xsi:type="xsd:dateTime">2012-03-20T16:01:28.3954818Z</dateDebutAction>

and from
PHP :

<dateDebutAction xsi:type="xsd:dateTime">2012-03-20T16:04:29+00:00</dateDebutAction>

if they are not equivalent what is the C# for date("c")

context :
I send the first soap to someone who work in PHP, and he's saying me the date is not valid, he gave me an exemple in php with date("c") and it work. So I wonder if my code is wrong.

I filter the soap request with mssoapt and the two request are equals except the datetime.

Christophe Debove
  • 6,088
  • 20
  • 73
  • 124

1 Answers1

1

Z means Zulu time, which is equivalent to GMT+00:00.

The UTC time zone is sometimes denoted by the letter Z—a reference to the equivalent nautical time zone (GMT), which has been denoted by a Z since about 1950.

Reference: Wikipedia–Time zones

Kirill Polishchuk
  • 54,804
  • 11
  • 122
  • 125