A basic date entry widget is available in the tcltk2 package. Here is how you can use it:
The code above produces the following date entry widget:
It does not let the user modify the slashes, only the numbers. It also ensures that the month is between 1 and 12 inclusive and that the day is between 1 and the number of days for that month, e.g. 31 for January. The date format is in MM/DD/YYYY (and unfortunatelly cannot be modified). Change the date:
… then hit <Enter> or click the OK button, and you got:
The Calendar Widget
Note: this has not been edited yet from the original form
This example was provided by Dirk Eddelbuettel.
The calendar widget displays the current date and allows the user to click on a date to select it.
(This example was run on July 23rd). Clicking on July 1 gives: