Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some data in my excel sheet and the date format is yyyy/mm/dd. When i Convert it to XML type then the data is not preserved in the specified format. Instead it is taking some junk text values. How do i proceeed?
Posted
Comments
PIEBALDconsult 14-Jan-15 23:30pm    
I don't know, but the W3C recommends YYYY-MM-DD for dates in XML.

1 solution

Why you need to convert it to XML, use json instead.
You can newtonsoft.json library to convert, it is available in nuget package manager.

And if you want to XML, save in XML in desired format after converting.

Regards,
Santosh
 
Share this answer
 
Comments
Anshumaan C 15-Jan-15 0:16am    
I guess i didn't make myself clear. We are trying to export it to a file. When you go to Excel's Developer mode, you get the facility to map the data in excel to xml format. As to why we I need it. It's a necessary evil.I would need to get a solution in this manner,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900