A date range field and filter for SilverStripe

Installs: 925

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 10

Forks: 4

Open Issues: 2


1.0.1 2019-05-02 10:54 UTC

This package is not auto-updated.

Last update: 2020-07-10 19:04:25 UTC


A date range field for SilverStripe. Based heavily on dnadesign/silverstripe-datedropdownselectorfield but using SilverStripe's DateField.

Our primary use case for this module was for use in a ModelAdmin within the CMS - it hasn't been tested anywhere else so use with care.


Use composer:

composer require 'deptinternalaffairsnz/silverstripe-date-range-field' '1.0.0'


When configuring searchable_fields for a DataObject you can make use of the DateRangeField and DateRangeFilter like so:

private static $searchable_fields = array(
    'Created' => array(
        'title' => 'created date',
        'field' => 'DeptInternalAffairsNZ\SilverStripe\DateRangeField',
        'filter' => 'DeptInternalAffairsNZ\SilverStripe\DateRangeFilter'