@title;noquote@

There is one main procedure to generate date and time widgets:

dt_widget_datetime [-show_date 0 -use_am_pm 0 -default none] name granularity

The parameter granularity can be set to seconds, minutes, five minute intervals, quarter-hour intervals, half-hour intervals, hours, days, or months. The other parameters are self-explanatory.

The following table shows examples of the various date and time widgets:

Procedure Widget
@dt_examples.procedure@ @dt_examples.result@

Notes

  1. The default time for dt_widget_datetime can be specified using any format that can be parsed by clock scan.
  2. In the examples above, the variable name represents the form variable that would be set by the widget. The script on the processing end should anticipate the parameters name.year, name.month, etc.