Excel XML, how can I get Excel to display my DateTime field in yyyy-MM-dd format?

前端 未结 1 1294
别跟我提以往
别跟我提以往 2020-12-20 21:47

I generate an XML file through C#, and the relevent part looks like this


    2009-01-18T00:00:00.000         


        
1条回答
  •  攒了一身酷
    2020-12-20 22:18

    In the section add

      
    

    then mark your cell with the style:

    2009-01-21T00:00:00.000
    

    Alternatively, open your XML file in Excel, make the change you want, re-save it as XML, then look to see what changed.

    0 讨论(0)
提交回复
热议问题