Page 1 of 1

Handling MySQL data type 'time' in form

Posted: Wed Jul 26, 2006 9:34 pm
by kabuki1985
What is the best way to get input for 'time' ? I'm currently stuck with the input type text to get the time. It is not so user-friendly that way. Any ideas?

Posted: Wed Jul 26, 2006 9:42 pm
by feyd
Date pickers are my favorite, with drop downs next, then standard text box(es). We've talked about each before in various threads.

strtotime() may be of interest.

Posted: Wed Jul 26, 2006 9:42 pm
by harrisonad
I usually make 3 selectboxes for hour, for minutes, and for am-pm selection
be careful though in retrieving the value