Hi Massimo, Yes, I suppose I must split the date from the time when displaying. Then I must reassemble them when saving. I will try to mess around with the time widget.
BTW am I correct in saying that this next line would never work... db.table.datetimefield.widget= SQLFORM.widgets.time.widget because datetimefield is given the class='datetime' and the widget is then assigned in web2py_ajax.html, client-side? --D On Oct 11, 2:26 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > If you split the datetime in a date field and time field, the time > field gets a jquery time picker (15mins intervals). You can make a > SQLFORM.factory with date and time, then re-assemble then into a > datetime in the DB. You can also do the split at the view level. > > On Oct 10, 6:21 pm, villas <villa...@gmail.com> wrote: > > > For a Datetime field... > > > On creating a record I wish to use a default date (say today) and > > choose only the time (selected from half hour intervals), e.g. > > 10:30, 14:00, 19:30 etc. > > > On editing a record, I would maintain the date but simply allow the > > time to be edited. > > > Can anyone make a suggestion to handle that elegantly? > > > Thks, David > >