time edit box

  • Thread starter Thread starter Ken Foskey
  • Start date Start date
K

Ken Foskey

Is there a simple time only edit box available. I have a datetime on
the database but I only want to set the hours and minutes. Any
suggestions?
 
Ken Foskey said:
Is there a simple time only edit box available. I have a datetime on
the database but I only want to set the hours and minutes. Any
suggestions?

Hi Ken,

Use a DateTimePicker. Set it's Format to Custom and use the CustomFormat
"HH:mm" (HH for 24 hours or hh for 12). Set ShowUpDown to true to hide the
calendar dropdown and switch to NumericUpDown mode.
 
Use a DateTimePicker. Set it's Format to Custom and use the
CustomFormat "HH:mm" (HH for 24 hours or hh for 12). Set ShowUpDown to
true to hide the calendar dropdown and switch to NumericUpDown mode.


Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Convert Datetime Stamp to HH and MM Worked 7
Format time string 1
Compare datetime in milliseconds 3
Will not auto open .jpg 1
Edit only date in grid 2
Expand Range into List 2
Ranges of time logic? 2
Excell 2021 0

Back
Top