Hi,

In this case, value is time.

I need to store time value in database and when they are called, they need to be interpreted as time and display in time format.

Below is a select with options are clsoing time of a listing.

My mission is stored them when user select, then compare them with server time, further more, display them on the screen for user preference.

Code HTML4Strict:
<select name="hour" id="hour">
	<option selected="selected">Choose closing time</option>
	<option value="1am">1:00 am</option>
	<option value="2am">2:00 am</option>
	<option value="3am">3:00 am</option>
	<option value="4am">4:00 am</option>
	<option value="5am">5:00 am</option>
	<option value="6am">6:00 am</option>
	<option value="7am">7:00 am</option>
	<option value="8am">8:00 am</option>
	<option value="9am">9:00 am</option>
	<option value="10am">10:00 am</option>
	<option value="11am">11:00 am</option>
	<option value="12am">12:00 am</option>
	<option value="1pm">1:00 pm</option>
	<option value="2pm">2:00 pm</option>
	<option value="3pm">3:00 pm</option>
	<option value="4pm">4:00 pm</option>
	<option value="5pm">5:00 pm</option>
	<option value="6pm">6:00 pm</option>
	<option value="7pm">7:00 pm</option>
	<option value="8pm">8:00 pm</option>
	<option value="9pm">9:00 pm</option>
	<option value="10pm">10:00 pm</option>
	<option value="11pm">11:00 pm</option>
	<option value="12pm">12:00 pm</option>	
</select>

Any solution appreciated.