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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dropdownlist values start at 6am and end at 9pm...

Status
Not open for further replies.

prover

Programmer
Sep 12, 2001
54
US
I need to create a dropdownlist that has time values from 6am to 9pm (on the hour and half hour) as values.

EX:

6:00AM
6:30AM
7:00AM
7:30AM
etc...

I've hard coded this but there has to be a way to do this via code. Maybe not? Ultimately i'd like to be able to reuse the code say for instance i only want to display time values on the hour or every fifteen minutes, etc...

TIA

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top