Link to home
Create AccountLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Configuring a DateTimePicker for time only

I would like to use the DateTimePicker for time only, not the date. How can I do this?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Difladermaus
Difladermaus

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of curiouswebster

ASKER

I changed the format to Time, added your custom format, but still no change. 3:08:34 PM is shows. I do not want seconds.

Also, I need the drop down to go away.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Custom Format worked, but I need to change format to Custom, not Time, in addition to setting CustomFormat to HH:MM
Select the DateTimePicker Object on your form, go to the properties and change the format to "time".
I can not get the AM and PM to show up. I guess I closed the question too early.  I assume I can use CustomFormat to include that.

Anybody got that correct format?
it's 'tt'