Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

DatePicker in GridField SS 3


10 Posts   1779 Views


12 October 2012 at 4:49am Community Member, 3 Posts

Hi Optic Blaze,
I have found the problem. It wasn'd the datatepicker. There was a problem with misspelling in an other field.
I had copied the code from a different page without a datepicker.

Thanks a lot..

Regards Andy

Optic Blaze

12 October 2012 at 10:22am Community Member, 162 Posts

Hi there,

Good to hear. I worked on the code... mine looks a bit different...but i checked it and it works:

class Termin extends DataObject {
static $db = array(
'FirstDate' => 'Date',
'DateRange' => 'Varchar',
'Description' => 'HTMLVarchar'

function getCMSFields() {
      $fields = new FieldList(
      $dateField = new DateField('FirstDate', 'FirstDate'),
      new HTMLEditorField('Description','Beschreibung'),
      new TextField('DateRange','Termin')
    $dateField->setConfig('showcalendar', true);

    return $fields;