G
Guest
I have a DataSet that has several DateTime columns. I retrieve the XML from
the DataSet by using its DataSet.GetXML method. This XML gets loaded into an
XPathDocument. I've also created a basic style sheet, which I'm applying to
the XML. I then transform the XML into a CSV file, using the XslTranform
class.
This causes the DateTime fileds to appear in a format such as this one:
2005-04-07T17:00:00.0000000-05:00. This representation of the DateTime value
is unformattable in Excel. I would like to dispaly the DateTime value as
"mm/dd/yy hh:mm:ss t" format, so that the date shown above would appear as
"04/07/2005 12:00:00 AM". Is there a way to convert the DateTime value to a
palpable format during the Tranformation?
Thanks.
the DataSet by using its DataSet.GetXML method. This XML gets loaded into an
XPathDocument. I've also created a basic style sheet, which I'm applying to
the XML. I then transform the XML into a CSV file, using the XslTranform
class.
This causes the DateTime fileds to appear in a format such as this one:
2005-04-07T17:00:00.0000000-05:00. This representation of the DateTime value
is unformattable in Excel. I would like to dispaly the DateTime value as
"mm/dd/yy hh:mm:ss t" format, so that the date shown above would appear as
"04/07/2005 12:00:00 AM". Is there a way to convert the DateTime value to a
palpable format during the Tranformation?
Thanks.