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.
source
share