Custom DateTime formats when using DataSet.WriteXml in .NET

后端 未结 5 875
别跟我提以往
别跟我提以往 2020-12-06 13:03

I\'ve got an issue where I am writing a DataSet to XML that has a column of type DateTime and I want to control the output format.

DataSet data = LoadDataSet         


        
5条回答
  •  独厮守ぢ
    2020-12-06 13:57

    Dirty but simple solution to convert datatime to string :

    select concat(datetime_field,'') datetime_field from table_name
    

提交回复
热议问题