A Date-Time Picker Placeholder Control
Have you ever tried getting authors to enter date and time values in a regular textbox? Even with well-placed instructions showing the proper format for the date (such as MM/DD/YYYY), you will often find that dates collected are invalid. Here are some real-life examples taken from a website that provided textboxes for entering the promotion start and end dates of a product:
Dates entered |
Why it’s not valid |
---|---|
Start Date: Immediate! End Date: 31 February 2004 07:00 AM |
The word “immediate” isn’t a valid date and 31 February 2004 does not exist, not even in a leap year! |
Start Date: 1 January 2005 :00:00 AM End Date: 31 December 2005 (or while stocks last!) |
While the start date is valid, the start time is missing the hour component. The end date appears valid, but it has extra text, or while stocks last, appended to it—making it invalid. |
Start Date... |