10. Other Advanced Controls
Date and DateTime-based QControls
<< Introduction to QImageControl   |   Back to Main   |   Combining Controls: A Better Way to Upload Files >>

View Source
will open in a new window
What time is it?
Qcodo includes several different QControls that assist with user input of dates and datetimes.

Note that beginning with Qcodo 0.3.39, the original QCalendar class (which popped up a calendar in a new window) has been renamed QCalendarPopup.

QDateTimePicker is the "default" control, in that the templates for MetaControls for tables with date or datetime columns will, by default, generate QDateTimePicker instances. While not "sexy" or glamourous by any stretch of the imagination, it offers an immense amount of utility, in that it allows for very distinct control over date, time and datetime components. By contrast, the DHTML-based QCalendar control offers, by definition, no support for any time-based component.

QDateTimeTextBox allows for textbox-based input of date and datetime values, utilizing QDateTime's constructor to parse a wide number of date and datetime formats.

And finally, QCalendar and QCalendarPopup are visual calendar controls to assist with date picking. As the naming suggestions, QCalendarPopup will popup a calendar in a new window, while QCalendar is a DHTML-based calendar widget which requires a "linked" QDateTimeTextbox control.

QCalendar (DHTML)

QCalendarPopup (in a new window)

QDateTimePicker (Date only)
QDateTimePicker (Date and Time)