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. C#
  4. DataSet DateTime Binding Issue

DataSet DateTime Binding Issue

Scheduled Pinned Locked Moved C#
databasehelpcsharpsharepointsql-server
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.
  • V Offline
    V Offline
    VenkataRamana Gali
    wrote on last edited by
    #1

    I have sql (sql server 2005) table which is having StartDate and EndDate datetime columns.

    StartDate value inserting as 2009-08-11 00:00:00.000,
    EndDate value inserting as 2009-08-11 23:59:00.000 (End of the day

    This DB Server is located at london. in my winforms(2.0) appliction i have typed dataset, is having same table schema. Typeddatasset StartDate and EndDate DateTimeMode property set to UnspecifiedLocal. i am populating this dataset with SP. SP is functioning properly. returned data i am binding to DataGridView. when its biinding to datagridview,

    StartDate is showing as '8/11/2009 4:30 AM' instead of '8/11/2009 12:00 AM' and
    EndDate is showing as '8/12/2009 4:29 AM' instead of '8/11/2009 11:59 PM'

    it seems problem is with databinding to dataset. any sounds?

    Ramana

    H 1 Reply Last reply
    0
    • V VenkataRamana Gali

      I have sql (sql server 2005) table which is having StartDate and EndDate datetime columns.

      StartDate value inserting as 2009-08-11 00:00:00.000,
      EndDate value inserting as 2009-08-11 23:59:00.000 (End of the day

      This DB Server is located at london. in my winforms(2.0) appliction i have typed dataset, is having same table schema. Typeddatasset StartDate and EndDate DateTimeMode property set to UnspecifiedLocal. i am populating this dataset with SP. SP is functioning properly. returned data i am binding to DataGridView. when its biinding to datagridview,

      StartDate is showing as '8/11/2009 4:30 AM' instead of '8/11/2009 12:00 AM' and
      EndDate is showing as '8/12/2009 4:29 AM' instead of '8/11/2009 11:59 PM'

      it seems problem is with databinding to dataset. any sounds?

      Ramana

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Please do not attempt to bump your posts. Very rude!! It is only 5 hours since your previous post. Have a little patience!!! Whilst your problem is obviously urgent to you, we give our time on a voluntary basis. Therefore your need is greater than ours and if your need is so great I suggest thet you get your Credit Card out and visit rentacoder.com. :)

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      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