Entering date / time for HTML form

I'm having trouble finding an elegant way to enter a date / time in html form. I think that you get a menu for the year, month, day, hour, minute, second, millisecond, which are filled only with valid entries. I could do this with hard coding values ​​for each drop down menu, but I think there should be a more elegant way to do this, perhaps with an existing javascript library that I haven't found yet. Any tips for this?

edit: Second, and if possible, millisecond precision is required for what I'm working on.

edit # 2: After reading some comments, I came to realize that it is probably a bad idea to have dropdown menus for the wide range of values ​​required by hours / minutes / seconds and especially milliseconds. I think it will come with a DatePicker prototype date picker along with a simple text box for entering time.

+5
source share
4 answers

This can be done quite elegantly with a jQuery plugin called Datepicker

+10
source

There are many calendars that can do this with date and time:

+5

, - PHP, .. :

select , PHP, for. 131 112. .. PHP.

+2

All Articles