Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Error while creating Xml from dataset

Error while creating Xml from dataset

Scheduled Pinned Locked Moved XML / XSL
helpxmltutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    susree
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • S susree

      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

      D Offline
      D Offline
      Douglas Troy
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups