Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to maintain SQL2K datetime format in XML?

Status
Not open for further replies.

gdrenfrew

Programmer
Joined
Aug 1, 2002
Messages
227
Location
GB
Hi there,
my query is returning a recordset to VB, and then being built into an XML document using the DOM.

When dates are formatted into XML, I'm losing the time off the end of the date.
Eg, SQL returns "28-04-2004 11:13:01.233" but XML only shows "28-April-2004". How can I maintain the full SQL datetime in my XML?

Do I need to set a datatype on the XML attribute in VB? How do I do that?


Thank you.
Graeme
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top