PC Review


Reply
Thread Tools Rate Thread

dataSet GetXML

 
 
z f
Guest
Posts: n/a
 
      10th Oct 2005
the GetXML method of the DataSet returns date fields in the format:
2005-10-09T15:13:00.0000000+02:00
can this be changed?

TIA!!!


 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      10th Oct 2005
Hi,

You would have to be lucky that it is like this, it helps you to be able to
use in any culture.

You can use a string, from which I know that there are a few situations
where this can be done. However again, take care where you use this.

A date as 1-12-2005 given by somebody in another culture, can be meant what
is for you 12-1-2005. By instance if you have a program used in a Bank,
than you can probably understand what can be the result of this. The most
common used in the world are by the way yyyy-MM-dd hh:mm:ss and dd-MM-yyyy
hh:mm:ss.

(Also however very much less are used dd-MM-yyyy hh:mm:ss pm/am and
MM-dd-yyyy pm/am)

I hope this helps,

Cor

"z f" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> the GetXML method of the DataSet returns date fields in the format:
> 2005-10-09T15:13:00.0000000+02:00
> can this be changed?
>
> TIA!!!
>
>



 
Reply With Quote
 
 
 
 
z f
Guest
Posts: n/a
 
      10th Oct 2005
this XML is transformed using XSL to HTML.
the problem is to change the format in XSL.
so if there is a flag to the DataSet in what format to output the date it
would be easier.
thanks.

"Cor Ligthert [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> You would have to be lucky that it is like this, it helps you to be able
> to use in any culture.
>
> You can use a string, from which I know that there are a few situations
> where this can be done. However again, take care where you use this.
>
> A date as 1-12-2005 given by somebody in another culture, can be meant
> what is for you 12-1-2005. By instance if you have a program used in a
> Bank, than you can probably understand what can be the result of this. The
> most common used in the world are by the way yyyy-MM-dd hh:mm:ss and
> dd-MM-yyyy hh:mm:ss.
>
> (Also however very much less are used dd-MM-yyyy hh:mm:ss pm/am and
> MM-dd-yyyy pm/am)
>
> I hope this helps,
>
> Cor
>
> "z f" <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
>> the GetXML method of the DataSet returns date fields in the format:
>> 2005-10-09T15:13:00.0000000+02:00
>> can this be changed?
>>
>> TIA!!!
>>
>>

>
>



 
Reply With Quote
 
New Member
Join Date: Sep 2011
Posts: 2
 
      24th Sep 2011
I read excelent how to solve this
http://gregnozik.blogspot.com/2011/0...od-enough.html
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
include rowstate in dataset.getxml =?Utf-8?B?bWFr?= Microsoft ADO .NET 2 3rd Dec 2004 04:36 PM
RE: DataSet.getxml =?Utf-8?B?RGVlcGFr?= Microsoft ADO .NET 0 21st Apr 2004 01:56 AM
Problem with dataset.getxml =?Utf-8?B?S2FzaHlhcA==?= Microsoft ASP .NET 1 13th Apr 2004 09:50 AM
Dataset.GetXML() with the power of FOR XML EXPLCIT? Mike Microsoft ADO .NET 4 28th Jan 2004 02:51 PM
DataSet.GetXml() appends \r\n to every tag in return string - .NET 1.1 Erik Miller Microsoft ADO .NET 0 12th Jan 2004 06:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 PM.