R
Robert Scarborough
I have a Table in a Typed Dataset which contains a Date field called
EventDate.
I've ensured that the field is defined as Date as opposed to DateTime in the
Typed Dataset.
When I generate an xml file from an instance of this typed dataset using the
ds.WriteXml method, all the dates come out formatted as follows:
<EventDate>2004-01-26T00:00:00.0000000-05:00</EventDate>
which is the DateTime datatype of the W3C XML Schema Part 2: Datatypes
I want the dates to come out as
<EventDate>2004-01-26</EventDate>
which is the Date datatype of the W3C XML Schema Part 2: Datatypes
How to I force the WriteXml method to output dates as the Date datatype as
opposed to the DateTime datatype?
EventDate.
I've ensured that the field is defined as Date as opposed to DateTime in the
Typed Dataset.
When I generate an xml file from an instance of this typed dataset using the
ds.WriteXml method, all the dates come out formatted as follows:
<EventDate>2004-01-26T00:00:00.0000000-05:00</EventDate>
which is the DateTime datatype of the W3C XML Schema Part 2: Datatypes
I want the dates to come out as
<EventDate>2004-01-26</EventDate>
which is the Date datatype of the W3C XML Schema Part 2: Datatypes
How to I force the WriteXml method to output dates as the Date datatype as
opposed to the DateTime datatype?