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. .NET (Core and Framework)
  4. dtpicker problem

dtpicker problem

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpdatabasedebugging
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.
  • D Offline
    D Offline
    d_smit
    wrote on last edited by
    #1

    Hello, I am facing the problem using dtpicker. Im my vb.net application on selecting dtate from dtpicker i am displaying records from database in agrid By default i am displaying the today's date in the format 08/09/2007. When i execute my application and changes the date using keyboard for instacnce pressing 06 for date and 08 for month it accepts date without moving cursor from the current position and i get result. But if i press 6 (instead 06) it doesn't accept. I tried to trace tthis value in dtpickers keyup, keydown , text changed and keypress events but not getting the current value unless and until i move cursor from it. I am terribly stuck to this problem. Please help me. Anyone who knows how it read current text of dtpicker please let me know. any help will be highly appreciated. Thanks a lot in advance.

    R 1 Reply Last reply
    0
    • D d_smit

      Hello, I am facing the problem using dtpicker. Im my vb.net application on selecting dtate from dtpicker i am displaying records from database in agrid By default i am displaying the today's date in the format 08/09/2007. When i execute my application and changes the date using keyboard for instacnce pressing 06 for date and 08 for month it accepts date without moving cursor from the current position and i get result. But if i press 6 (instead 06) it doesn't accept. I tried to trace tthis value in dtpickers keyup, keydown , text changed and keypress events but not getting the current value unless and until i move cursor from it. I am terribly stuck to this problem. Please help me. Anyone who knows how it read current text of dtpicker please let me know. any help will be highly appreciated. Thanks a lot in advance.

      R Offline
      R Offline
      rohitsrivastava
      wrote on last edited by
      #2

      hello friend ! in datetimepicker you can set the property of datetimepicker Go to the property window set (1)custom formet : dd/MM/yyyy (2) Format : short (3)Value : current date your problem is solve bye have a nice day

      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