364,085 Members | 5378 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

Standard datetime format?

Chris  Ashley
P: n/a
Chris Ashley
Hi,

I have an XML web service which accepts a few datetime values. We have
some clients using it who are using different systems (java etc) and
they need to know what the standard format for a datetime node should
be? Have tried DD/MM/YY but no luck. Anybody know?

Thanks,

Chris

Jan 27 '06 #1
Share this Question
Share on Google+
1 Reply


Martin Honnen
P: n/a
Martin Honnen


Chris Ashley wrote:

[color=blue]
> I have an XML web service which accepts a few datetime values.[/color]

What kind of datatime, the .NET Framework DateTime structure
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDateTimeClassTopic.asp>
[color=blue]
> We have
> some clients using it who are using different systems (java etc) and
> they need to know what the standard format for a datetime node should
> be? Have tried DD/MM/YY but no luck. Anybody know?[/color]

According to
<http://samples.gotdotnet.com/quickstart/aspplus/default.aspx?url=%2fquickstart%2faspplus%2fdoc%2fw ebservicetypes.aspx/>
the .NET framework DateTime ends up as an XML schema dateTime or date or
time.

The XML schema data types are defined here:
<http://www.w3.org/TR/xmlschema-2/#dateTime>
<http://www.w3.org/TR/xmlschema-2/#time>
Example XSD dateTime representation is e.g.
2006-01-27T15:49:00+01:00
that is
yyyy-mm-ddThh:mm:ss
and the part after that the time zone difference to UTC.

Simply look into the WSDL description of that .NET framework which
schema type is being used. And nowadays anyone using Java to consume a
web service certainly has tools that read the WSDL description and
generate the proper classes taking care of the SOAP serialization.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jan 27 '06 #2

Post your reply

Help answer this question



Didn't find the answer to your .NET Framework question?

You can also browse similar questions: .NET Framework