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. Web Development
  3. ASP.NET
  4. GMDatePicker

GMDatePicker

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 3 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.
  • K Offline
    K Offline
    kiran puchakayala
    wrote on last edited by
    #1

    How iam using GMDatePicker for entering the date time .now my problem is if i selct that as null its sotored in to data base as 01-01-1900 instead of that ineed to store null value how can i do that

    Kiran Kumar.P

    V 1 Reply Last reply
    0
    • K kiran puchakayala

      How iam using GMDatePicker for entering the date time .now my problem is if i selct that as null its sotored in to data base as 01-01-1900 instead of that ineed to store null value how can i do that

      Kiran Kumar.P

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      I don't think even you assign Null to a DateTime variable since it will elicit a compile time error. Thatz why perhaps, we have a DateTime.MinValue in existence.

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      K 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        I don't think even you assign Null to a DateTime variable since it will elicit a compile time error. Thatz why perhaps, we have a DateTime.MinValue in existence.

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        K Offline
        K Offline
        kiran puchakayala
        wrote on last edited by
        #3

        Hai how can i insert null if user is not insert any value that is myquestion

        Kiran Kumar.P

        I V 2 Replies Last reply
        0
        • K kiran puchakayala

          Hai how can i insert null if user is not insert any value that is myquestion

          Kiran Kumar.P

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          U can't insert NULL For Datetime datatype. Check out if Date is "01-01-1900" then display "" Instead of "01-01-1900" Best Regard Pathan

          ---------------------------------------------------

          1 Reply Last reply
          0
          • K kiran puchakayala

            Hai how can i insert null if user is not insert any value that is myquestion

            Kiran Kumar.P

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            NULL is not an allowed value for DateTime. Your best bet is the predefined constant DateTime.MinValue.

            Vasudevan Deepak Kumar Personal Homepage Tech Gossips

            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