Error while creating Xml from dataset
-
Hi , I am creating xml document from dataset. one of my data field is of data type datetime. so when I am converting it to xml it is getting conveted in to long date value ,but i don't want long date. for example my datetime field value is 8/29/2002 and it is getting converted into '2002-08-29T00:00:00.0000000+05:30' I hope I have explained my problem to some extent. can anybody help me out to solve this problem? thanks
-
Hi , I am creating xml document from dataset. one of my data field is of data type datetime. so when I am converting it to xml it is getting conveted in to long date value ,but i don't want long date. for example my datetime field value is 8/29/2002 and it is getting converted into '2002-08-29T00:00:00.0000000+05:30' I hope I have explained my problem to some extent. can anybody help me out to solve this problem? thanks
I ran into this same "issue", and I ended up just storing the Date as a string in the XML and then converting it back into a Date/Time when I read the data back in ... There's probably a more "direct" approach to take, but this works just fine. D.