Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTPicker Time and Current Time

Status
Not open for further replies.

kaylabear

Programmer
Oct 23, 2002
59
0
0
CA
Hi Everyone,

I am using the DTPicker to show the time, or better yet so the user can select a time, firstly can someone please tell me how I delete the seconds from showing up within the DTPicker. I only want hour, minute, Am/Pm.

Also I would like to know how I can compare the time that is contained within the DTPicker to the current time.

Thanks a bunch for your input.
 
The control has a property that can give you the ability to custom it.

In the property Format you must have the option 3 (dtpCustom) and in the property CustomFormat you must type in hh:mm tt

I hope it's helpful
 
Yes that is very helpful tokrakree, thank you.

But I I would still like to know how I can compare the time that is contained within the DTPicker to the current time.

Thankx.
 
Look into the datediff functionality within MSDN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top