PHPackages                             silverware/datepicker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. silverware/datepicker

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

silverware/datepicker
=====================

SilverWare Datepicker Module.

1.0.1(7y ago)43.8k↓100%3[4 issues](https://github.com/praxisnetau/silverware-datepicker/issues)BSD-3-ClauseJavaScriptPHP &gt;=5.6.0

Since May 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/praxisnetau/silverware-datepicker)[ Packagist](https://packagist.org/packages/silverware/datepicker)[ Docs](https://github.com/praxisnetau/silverware-datepicker)[ RSS](/packages/silverware-datepicker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

SilverWare Datepicker Module
============================

[](#silverware-datepicker-module)

[![Latest Stable Version](https://camo.githubusercontent.com/44fec4e172bc474fc8082adbfb62547db44d54b62de33a056769c51391bc399b/68747470733a2f2f706f7365722e707567782e6f72672f73696c766572776172652f646174657069636b65722f762f737461626c65)](https://packagist.org/packages/silverware/datepicker)[![Latest Unstable Version](https://camo.githubusercontent.com/fdddf1a39186f344629c4f49e4a6d7d3c96f2626546fc80be1939395ff1df129/68747470733a2f2f706f7365722e707567782e6f72672f73696c766572776172652f646174657069636b65722f762f756e737461626c65)](https://packagist.org/packages/silverware/datepicker)[![License](https://camo.githubusercontent.com/983f4a3af356b8aa004077241af810c1e56defad081a78e46a9a29260fb6406b/68747470733a2f2f706f7365722e707567782e6f72672f73696c766572776172652f646174657069636b65722f6c6963656e7365)](https://packagist.org/packages/silverware/datepicker)

**NOTE:** this module provides a picker for `DateField` only. If you require a picker which is capable of time input (and hence supports `DatetimeField` and `TimeField`), please consider using the [SilverWare Calendar](https://github.com/praxisnetau/silverware-calendar) module instead.

A polyfill module for the [SilverStripe v4](https://github.com/silverstripe/silverstripe-framework) `DateField` class to show a datepicker in browsers which do not yet support the HTML5 date input.

[![Datepicker](https://camo.githubusercontent.com/c383fb30de24e71d2e2590c71d27a93c7ecd01ae1df5630b92c016fb9dd49a53/68747470733a2f2f73342e706f7374696d672e6f72672f736f393763727078702f646174657069636b65722e706e67)](https://camo.githubusercontent.com/c383fb30de24e71d2e2590c71d27a93c7ecd01ae1df5630b92c016fb9dd49a53/68747470733a2f2f73342e706f7374696d672e6f72672f736f393763727078702f646174657069636b65722e706e67)

Contents
--------

[](#contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Customisation](#customisation)
- [Issues](#issues)
- [Contribution](#contribution)
- [Attribution](#attribution)
- [Maintainers](#maintainers)
- [License](#license)

Requirements
------------

[](#requirements)

- [SilverStripe Framework v4](https://github.com/silverstripe/silverstripe-framework)

Installation
------------

[](#installation)

Installation is via [Composer](https://getcomposer.org):

```
$ composer require silverware/datepicker

```

Configuration
-------------

[](#configuration)

As with all SilverStripe modules, configuration is via YAML. Extensions to `LeftAndMain` are applied via `config.yml`. You may also include the bundle files in your theme to make use of the polyfill in forms.

You can configure a default format and polyfill setting for `DateField` in the YAML:

```
SilverStripe\Forms\DateField:
  default_datepicker_format: d MMM yyyy
  default_datepicker_polyfill: all
```

The configuration option `default_datepicker_format` is a standard [CLDR date format](http://cldr.unicode.org/translation/date-time) which will be applied by default to all `DateField` instances using the datepicker.

The configuration option `default_datepicker_polyfill` determines the default polyfill mode for `DateField` instances, and will force the polyfill to be used on the specified device. Possible values are: `desktop`, `mobile`, `all`, and `none`.

You can override these defaults on a per-instance basis of `DateField` by using the following methods:

```
$field = DateField::create('MyDate', 'Date');
$field->setDatepickerFormat('d/MM/yyyy');
$field->setDatepickerPolyfill('mobile');
```

Customisation
-------------

[](#customisation)

To customise the appearance of the date picker, first install the frontend dependencies with Yarn (or NPM):

```
$ cd silverware-datepicker
$ yarn install

```

Make your required changes to `_variables.scss` in the `client/src/styles` folder. Once you've customised the variables, you'll need to compile the source files.

This module uses [webpack](https://webpack.js.org) for compiling and bundling frontend assets. A configuration file is provided with the repo to allow you to get up and running straight away. To have webpack watch your files and compile automatically, run:

```
$ yarn watch

```

When your customisations are ready for production, you may run the following to optimise the bundle files:

```
$ yarn build

```

Issues
------

[](#issues)

Please use the [GitHub issue tracker](https://github.com/praxisnetau/silverware-datepicker/issues) for bug reports and feature requests.

Contribution
------------

[](#contribution)

Your contributions are gladly welcomed to help make this project better. Please see [contributing](CONTRIBUTING.md) for more information.

Attribution
-----------

[](#attribution)

- Makes use of [better-dateinput-polyfill](https://github.com/chemerisuk/better-dateinput-polyfill) by [Maksim Chemerisuk](https://github.com/chemerisuk).

Maintainers
-----------

[](#maintainers)

[![Colin Tucker](https://avatars3.githubusercontent.com/u/1853705?s=144)](https://github.com/colintucker)[![Praxis Interactive](https://avatars2.githubusercontent.com/u/1782612?s=144)](http://www.praxis.net.au)[Colin Tucker](https://github.com/colintucker)[Praxis Interactive](http://www.praxis.net.au)License
-------

[](#license)

[BSD-3-Clause](LICENSE.md) © Praxis Interactive

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~232 days

Total

3

Last Release

2817d ago

Major Versions

0.1.0 → 1.0.02017-06-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5d47a59cd183aa3f599c2b66dfce7c79c249c2eacb749f0ac8c38c4ca273d14?d=identicon)[PraxisNetAu](/maintainers/PraxisNetAu)

---

Top Contributors

[![colintucker](https://avatars.githubusercontent.com/u/1853705?v=4)](https://github.com/colintucker "colintucker (7 commits)")[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (1 commits)")

---

Tags

datepickerhtml5polyfillsilverstripe-4silverwarepolyfillsilverstripedatedatefielddatepickersilverware

### Embed Badge

![Health badge](/badges/silverware-datepicker/health.svg)

```
[![Health](https://phpackages.com/badges/silverware-datepicker/health.svg)](https://phpackages.com/packages/silverware-datepicker)
```

###  Alternatives

[silverware/calendar

SilverWare Calendar Module.

1644.2k1](/packages/silverware-calendar)[dnadesign/silverstripe-datedropdownselectorfield

Select your date values with Dropdown Fields

138.8k](/packages/dnadesign-silverstripe-datedropdownselectorfield)[aloko/nova-persian-datepicker

Persian Datepicker for Laravel Nova.

203.5k](/packages/aloko-nova-persian-datepicker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
