PHPackages                             bigfork/silverstripe-simpledatefield - 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. bigfork/silverstripe-simpledatefield

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

bigfork/silverstripe-simpledatefield
====================================

A SilverStripe form field for entering dates based on the UK Government’s date input pattern

2.0.0(8mo ago)26.8k[2 PRs](https://github.com/bigfork/silverstripe-simpledatefield/pulls)BSD-3-ClausePHP

Since Aug 15Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/bigfork/silverstripe-simpledatefield)[ Packagist](https://packagist.org/packages/bigfork/silverstripe-simpledatefield)[ RSS](/packages/bigfork-silverstripe-simpledatefield/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

SilverStripe SimpleDateField
============================

[](#silverstripe-simpledatefield)

A form field for entering dates based on the GOV.UK Design System’s [date input pattern](https://design-system.service.gov.uk/patterns/dates/), which uses three separate inputs for day, month, and year.

Usage
-----

[](#usage)

```
SimpleDateField::create('DateOfBirth', 'Date of birth');

// Or to offer the inputs in a different order
SimpleDateField::create('DateOfBirth', 'Date of birth', null, SimpleDateField::YMD);
SimpleDateField::create('DateOfBirth', 'Date of birth', null, SimpleDateField::MDY);
```

If you choose to manually pass a date to the `$value` argument, it must be in the ISO 6801 date format (YYYY-MM-DD).

Date of birth
-------------

[](#date-of-birth)

If using this field to allow users to enter their date of birth, it’s recommended to add relevant `autocomplete` attributes to assist this.

```
$field = SimpleDateField::create('DateOfBirth', 'Date of birth');
$field->getDayField()->setAttribute('autocomplete', 'bday-day');
$field->getMonthField()->setAttribute('autocomplete', 'bday-month');
$field->getYearField()->setAttribute('autocomplete', 'bday-year');
```

Styling
-------

[](#styling)

No front-end styling is provided to display the fields “inline”. You could use the CMS styling for inspiration: check out `client/src/bundles/cms.scss`.

Todo
----

[](#todo)

- Add translation entities for labels/error messages
- Min/max date options
- Unit tests

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance62

Regular maintenance activity

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 61.7% 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 ~274 days

Recently: every ~497 days

Total

9

Last Release

261d ago

Major Versions

0.2.0 → 1.0.02021-08-11

1.x-dev → 2.0.02025-08-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203294386?v=4)[-&gt; lozcalver](/maintainers/kinglozzer)[@kinglozzer](https://github.com/kinglozzer)

---

Top Contributors

[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (37 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (23 commits)")

---

Tags

silverstripedateformfielddatefield

### Embed Badge

![Health badge](/badges/bigfork-silverstripe-simpledatefield/health.svg)

```
[![Health](https://phpackages.com/badges/bigfork-silverstripe-simpledatefield/health.svg)](https://phpackages.com/packages/bigfork-silverstripe-simpledatefield)
```

###  Alternatives

[silverstripe/tagfield

Tag field for SilverStripe

571.2M45](/packages/silverstripe-tagfield)[burnbright/silverstripe-externalurlfield

Provides SilverStripe with a DBField and FormField for handling external URLs.

109.6k1](/packages/burnbright-silverstripe-externalurlfield)[kinglozzer/multiselectfield

A sortable multiple select field for managing many-to-many relations

1341.2k2](/packages/kinglozzer-multiselectfield)[dnadesign/silverstripe-datedropdownselectorfield

Select your date values with Dropdown Fields

138.8k](/packages/dnadesign-silverstripe-datedropdownselectorfield)[adrhumphreys/silverstripe-textdropdownfield

A text field combined with a dropdown field.

106.1k](/packages/adrhumphreys-silverstripe-textdropdownfield)

PHPackages © 2026

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