A problem that I have run into a couple of times is the concept of DateTime inputs. Granted it’s pretty easy on the back end to take a single DateTime data item, and wire it to a database of similar type, but on the front end, it’s not as easy. This post will cover a number of ways to handle date times as inputs in a user friendly way.
The first approach is to make a single field hold the information for both the date and the time. This makes sense because on the back end, that’s how the data usually is set up. You’re likely to just have a datetime field in a database, rather than both a date field and a time field. For the user, it can be a little more cumbersome if you look at it from the perspective of “the date and the time are two different things”. That cumbersome feeling can be mitigated by use of a datetimepicker. These are similar to datepickers, but also account for an entry to time as well.