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!

Time Picker 1

Status
Not open for further replies.

patlim88

Programmer
May 14, 2002
22
0
0
US
Hi:

I chose a DateTimePicker for the GUI I'm creating and was wondering if anyone knows how to make it display in 24 hour format instead of 12 hour format.

I'm trying to let the user use a box that displays in 24 hour format so that they don't need to type in the time.

Thanks.

Patrick
 
The DateTimePicker respects your regionalisation settings. In the regionalisation control panel, change your time format to H:mm or H:mm:ss.

Of course, you have to do this on every machine your program is run on; not just the machine it's compiled on.

If that doesn't get you where you need to be, go to Torry's and you'll probably find a custom control that does what you want. -- Doug Burbidge mailto:doug@ultrazone.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top