XML File - Date field formatting?

G

Guest

I have a date field in my database that is formatted for MM/DD/YYYY and when
it is exported to an xml file, it shows up as the following
2007-11-21T00:00:00

So it is being exported YYYY-MM-DDTHH:MM:SS

Any idea how to force the export of that data as MM/DD/YYYY?
 
R

Rick Brandt

Bombay said:
I have a date field in my database that is formatted for MM/DD/YYYY
and when it is exported to an xml file, it shows up as the following
2007-11-21T00:00:00

So it is being exported YYYY-MM-DDTHH:MM:SS

Any idea how to force the export of that data as MM/DD/YYYY?

Export a query instead of your table and use the Format() function (not the
format property) to force the format you want in the query's output.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top