Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 24th, 2006, 10:15 AM
Paul Boon
Guest
 
Posts: n/a
Default DateTime format from XML in ADO.NET

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,

Paul
  #2  
Old February 24th, 2006, 01:15 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: DateTime format from XML in ADO.NET


Paul Boon wrote:
[color=blue]
> I would like to have "dd-MM-yyyy" in my XML datatime fields, but I am
> getting 2005-02-25T00:00:00.[/color]

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
http://JavaScript.FAQTs.com/
  #3  
Old March 1st, 2006, 01:05 AM
clintonG
Guest
 
Posts: n/a
Default Re: DateTime format from XML in ADO.NET

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

"Martin Honnen" <mahotrash@yahoo.de> wrote in message
news:uoZAXKUOGHA.2268@TK2MSFTNGP09.phx.gbl...[color=blue]
>
> Paul Boon wrote:
>[color=green]
>> I would like to have "dd-MM-yyyy" in my XML datatime fields, but I am
>> getting 2005-02-25T00:00:00.[/color]
>
> 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
> http://JavaScript.FAQTs.com/[/color]


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles