Home     About PeterBlum.com     Policies     Download a Licensed Product     Newsletter

Peter's Date and Time Try It   Buy It
 

Award winning Date and Time Entry controls

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.

Here are the controls of Peter's Date and Time.


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.


...

The default DateTextBox
...
Help - show commands

Customized. Popup the calendar to see 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.


Previous Month
Next Month
November 2024 Select a Different Month
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

The default Calendar
Previous Year Previous Month
Next Month Next Year
November 2024 - December 2024 Select a Different Month
November 2024
 SunMonTueWedThuFriSat
44272829303112
453456789
4610111213141516
4717181920212223
4824252627282930
491234567
December 2024
 SunMonTueWedThuFriSat
491234567
50891011121314
5115161718192021
5222232425262728
12930311234
2567891011
Today
Clear
Thu, Nov 14, 2024

Heavily customized

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.
Previous Month
Next Month
November 2024 Select a Different Month
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567
Click on dates to toggle their selection.

Default MultiSelectionCalendar
Previous Year Previous Month
Next Month Next Year
November 2024 - December 2024 Select a Different Month
November 2024
+Sun
v
Mon
v
Tue
v
Wed
v
Thu
v
Fri
v
Sat
v
>272829303112
>3456789
>10111213141516
>17181920212223
>24252627282930
>1234567
December 2024
+Sun
v
Mon
v
Tue
v
Wed
v
Thu
v
Fri
v
Sat
v
>1234567
>891011121314
>15161718192021
>22232425262728
>2930311234
>567891011
Today
Clear
Click on dates to toggle their selection.

Customized with select by week, month and day of week

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.

The default TimeOfDayTextBox
++
--
...
Help - show commands

Customized TimeOfDayTextBox. Try the buttons to the right.

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.

Previous Month
Next Month
August 2012 Select a Different Month
SunMonTueWedThuFriSat
29
Closed
30311234
5
Closed
67891011
Join us for a classic…
12
Closed
13
Closed
1415161718
19
Closed
20
Summer sale
21
Summer sale
22
Summer sale
23
Summer sale
24
Summer sale
25
26
Closed
27282930311
2
Closed
345678

Calendar with SpecialDates enhancing it.
Point to August 11 to popup more detail.

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.

The Peter's Date and Time Module

Peter's Date and Time is a module of Peter's Data Entry Suite. It is included when you purchase the Peter's Data Entry Suite, or it can be purchased separately starting at $90 per server.

If you purchase this module alone, you will get the 18 controls described on this page.

If you are purchasing modules, the Peter's Interactive Pages module is recommended but not required. When used, these controls can offer Context Menus, Help buttons, Interactive Hints, and the EnterSubmitsControlID property.



Peter's Data Entry Suite gives you feature rich and interactive data entry web forms with over 100 web controls.
Start with better controls. Finish with better sites.
Try It   Buy It
Related products: Peter's Data Entry Suite  | Peter's Business Logic Driven UI ("BLD")  | Peter's Professional Validation  | Peter's More Validators
Peter's Date and Time  | Peter's TextBoxes  | Peter's Interactive Pages  | Peter's Input Security