Date picker
A date picker, popup calendar, date and time picker, or time picker is a graphical user interface widget which allows the user to select a date from a calendar and/or time from a time range. The typical practice is to provide a text box field which, when clicked upon to enter a date, pops up a calendar next to or below the field, allowing the user to populate the field with an appropriate date, or provides a text box with an icon of a calendar such that when the icon is clicked on, the calendar appears, or show calendar widget directly.
The date picker provides several advantages, including:
- allowing the user to enter a date by merely clicking on a date in the pop-up calendar as opposed to having to take their hand off the mouse to type in a date.
- validation of dates by restricting date ranges, e.g. only after today and for two weeks later, or only for dates in the past.
- a date range can be entered such that for a set of "from-to" date fields, if the "from" field is filled, the "to" field cannot be set to a date before the "from" field, or if the "to" field is filled, the "from" field cannot be set to a later date than the "to" field.
- can have a "today" button
- can customize the day the week begins on
- Only legal dates can be entered, e.g. February 29, 2100 can't be entered, nor could June 31.
- Date format confusion is eliminated, e.g. is 7/4/10 July 4, 2010, April 7, 2010, or April 10, 2007?
- Cannot enter an invalid time.
- Cannot select an out of range time, or during unattended times.
- Cannot select an invalid range