Avatar of curiouswebster
curiouswebster
Flag 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!
C#.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
curiouswebster

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Difladermaus

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Mez4343

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
curiouswebster

ASKER
Custom Format worked, but I need to change format to Custom, not Time, in addition to setting CustomFormat to HH:MM
Hir0

Select the DateTimePicker Object on your form, go to the properties and change the format to "time".
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
curiouswebster

ASKER
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?
curiouswebster

ASKER
it's 'tt'