Datset to xml file problem

I have a dataset with a table in it and i am using the myDS.WriteXml("c:\test1.xml") function in vb.net 2005.
My dataset is built of a sql statement from SQL2005.
I have a date file and when i view it in debug mode the value is say 2008/11/17 12:00
but when it is written out to the xml file its in this format <QE_x0020_Date>2008-06-30T00:00:00+02:00</QE_x0020_Date>

Why is it adding T00:00:00+02:00

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Because that is the way that it was designed, and you don't have much control over the output format.  You can apply an XSLT transformation to the output to get what you need.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CraigLazarAuthor Commented:
i found away around it, in my sql select statements i am using convert and cast functions and its seems to be formatting the data correctly now.

CraigLazarAuthor Commented:
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Bob LearnedCommented:
Can you show me what you did differently?
CraigLazarAuthor Commented:
well its giving me hassles again but what i did in my sql statement is i used the Convert funcion to convert the date field to a varchar(10),103 and then it comes down to my dataset and then writtn out to the xml file - but i am now having issues uding the datasapter on myweb service to return the adjusted data table.

hope this helps
Bob LearnedCommented:
Is your date column as SMALLDATETIME or DATETIME column?
CraigLazarAuthor Commented:
in sql its a datetime, does smalldatetime only store the date?
Bob LearnedCommented:
SMALLDATETIME doesn't store the same precision for a date, so it loses some accuracy with seconds.  I only use DATETIME when I need that extra precision.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.