datetime Control - datetimecontrol Class

The datetime control places a set of text based date time controls in the form.  It uses the datetimcontrol class in the forms/controls folder.

The  datetime control accepts several parameters:

  • name (required)
  • label - the control caption
  • value - the object property to assign to the control
  • showdate - should the date portion be displayed
  • showtime - should the time portion be displayed
  • default - the initial date/time

An example of the  datetime control:

{control type="datetime" name="eventdate" label="Date of Event" value=$record->eventdate showtime=false}
Loading Help