Peter’s Date and Time provides 18 controls used to collect date and time oriented data from your users. Since its release in 2002, Peter's Date and Time (formerly Peter's Date Package) has built a reputation of excellence, including its extensive and unique features, quality, and documentation. It also has a large installed base.
DateTextBox
The DateTextBox control is a TextBox that provides elegant client-side entry of dates. It filters keystrokes, validates entries with helpful feedback, follows international formatting, and accepts partial dates. (For example, if you enter only the month and day, it will add the current year for you.) Its extensive features include a popup calendar (often called a "Date Picker"); context menu to show and run available commands; help button; range support when two are connected; minimum, maximum dates, and MUCH more.
Calendar
This Calendar control is a replacement for the native Calendar control that provides extensive improvements over the original. Use it to let the user select a single date and to show date oriented information in date cells. This Calendar control does not require postbacks to handle the user's clicks, providing a much faster experience than the original Calendar control. It has over 200 properties to customize it, including showing multiple months, a context menu of commands, a popup MonthYearPicker, and a display of the selected date.
MultiSelectionCalendar
This is a variation of the Calendar control that supports multiple selections. It can select individual dates, weeks, months, and days of the week. It also has a mode to require a consecutive range of dates. The MultiSelectionCalendar introduces its unique Message Center to assist the user in date selection. It also offers all of the formatting features of Calendar too.
TimeOfDayTextBox and DurationTextBox
There are two types of times: time of day and duration. Use the TimeOfDayTextBox to enter the time of day. It supports 24 and 12 hour formats.
Use the DurationTextBox to enter any duration from 0 to 99999:59:59 hours. It supports HH:MM or decimal entry. Both controls offer a popup TimePicker, help button, context menu, and spinners.
SpecialDates
The SpecialDates control supplies a list of dates and attributes about those dates to the DateTextBox and two Calendar controls.
The DateTextBox uses the SpecialDates to prevent users from entering unwanted dates.
The Calendar controls use the SpecialDates data to customize the appearance of each date cell and make some of them unselectable. The formatting is very powerful, with the capability of popping up a window offering further details as the user points to a date in the calendar.
Validators
Validation is a requirement for data entry. Date and time values cannot be confirmed until the format is proven to be a real date or time and value matches your requirements. The native ASP.NET validators cannot handle the additional formats you can specify for dates, such as abbreviated and long dates. They cannot handle time and duration values either.
Peter's Date and Time includes two sets of validators, with support for the native Validation framework and Peter's Professional Validation module. In addition to validating the format, range, and comparison rules, Peter's Date and Time provides validation for these cases:
- UnselectableDatesValidator - Prevents certain dates from being selected within the DateTextBox.
- UnselectedTimesValidator - Prevents entry of certain times, either from the list associated with the popup TimePicker or from a time interval rule.
- DifferenceValidator - For dates: compares the dates within two DateTextBoxes to be sure they are no more or less than a specific number of days apart. For example, the dates cannot be any closer than 5 days or further than 30 days.
For times: compares the times within two time oriented TextBoxes to be sure they are no more or less than a specific number of seconds apart. For example, the times cannot be any closer than 1 hour (3600 seconds) or more than 24 hours (24 x 3600 seconds) apart.
Other Products By Peter L. Blum