Date Time Picker Control Returns Wrong Value? RRS feed

  • Question

  • No matter what I try, the DateTimePicker control returns the time (12:00:00AM) only.  I've set the format property in both design and run time to short date and I still only get the time.

    Funny, I have four other DTPs on the form and they work fine.  :(

    Any ideas?

    Wednesday, August 22, 2012 1:27 AM


  • OK, I guess the control doesn't work properly on a multipage control unless the page the DTPicker is on is visible. So, I assigned the date value to a variable and now the variable holds the date when that page is not visible!

    Is it bad form to mark yourself as the solver of your question?

    • Marked as answer by MavilaJay Wednesday, August 22, 2012 2:47 AM
    Wednesday, August 22, 2012 2:47 AM