Projects/Usability/HIG/Date Time Pickers

From KDE TechBase
< Projects‎ | Usability‎ | HIG
Revision as of 10:09, 4 July 2013 by Htietze (talk | contribs)


Purpose

The date/time picker is a control that provides a convenient way to select a certain date or time. The time picker works just like a spin box with an adopted mask. The date picker shows all days of a month in weekly columns, has small navigation buttons to access previous and next month or years as well as interactive controls to chose month and year directly. The user 'picks' the date per single click on a particular day. An additional 'today' button can be used to navigate back. The benefit of date/time picker is that these controls prevent format error and provide feedback on wrong input.

Guidelines

  • Use a date/time picker as a convenient way to select a certain day or time.
  • When selecting a date use a KDatePicker. If space is limited, use a KDateComboBox or a KDateWidget.
  • When user must select both start and end date/times, make the default end date/time aware of the start date/time: when the user sets a start date, switch the end date at least to the same date.
  • Avoid wrong input by restricting the period to a reasonable range (for instance when a range is being selected).
  • Do not modify localization settings (i.e. first day of week, date label etc.)
  • Use controls consistently; either all date input should be done by date picker or none.
  • Insert current time or date into into input field on user reset.

Implementation

Time-only controls

Date-only controls

Date-time controls