all groups > dotnet xml > february 2006 >
You're in the

dotnet xml

group:

DateTime format from XML in ADO.NET


DateTime format from XML in ADO.NET Paul Boon
2/24/2006 2:01:26 AM
dotnet xml:
Hi Group,

I would like to have "dd-MM-yyyy" in my XML datatime fields, but I am
getting 2005-02-25T00:00:00. Is there an trick to DataSet.WriteXMl that
creates the wanted format?


Greetings,

Re: DateTime format from XML in ADO.NET Martin Honnen
2/24/2006 2:02:34 PM

[quoted text, click to view]

Why would you want that? The format is standardized so that other XML
tools understand it. If you need a different format in a final output
representation then do that by processing the XML but for data exchange
you should use the standard format.



--

Martin Honnen --- MVP XML
Re: DateTime format from XML in ADO.NET clintonG
2/28/2006 6:58:16 PM
I've always wondered how anybody could actually know what culture was being
used when the day and month values were each 12 or less...

// which is the month and which is the day?
2005-02-02T00:00:00.

<%= Clinton Gallagher

[quoted text, click to view]

AddThis Social Bookmark Button