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
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