10. Other Advanced Controls
Date and DateTime-based QControls
<< Introduction to QImageControl
|
Back to Main
|
Combining Controls, Ex. 1: A Better Way to Upload Files >>
View Source
will open in a new window
What time is it?
QCubed includes several different QControls that assist with user input of dates and datetimes.
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
is a jQuery-based visual calendar picker control.
Results...
QDateTimeTextBox
Update
QCalendar
Update
QDateTimePicker
(Date only)
--
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
--
--
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
Update
QDateTimePicker
(Date and Time)
--
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
--
--
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
--
12 AM
1 AM
2 AM
3 AM
4 AM
5 AM
6 AM
7 AM
8 AM
9 AM
10 AM
11 AM
12 PM
1 PM
2 PM
3 PM
4 PM
5 PM
6 PM
7 PM
8 PM
9 PM
10 PM
11 PM
:
--
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Update