PHPackages                             drupal/core-datetime - 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. drupal/core-datetime

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

drupal/core-datetime
====================

This class wraps the PHP DateTime class with more flexible initialization parameters, allowing a date to be created from an existing date object, a timestamp, a string with an unknown format, a string with a known format, or an array of date parts. It also adds an errors array and a \_\_toString() method to the date object.

11.3.5(2mo ago)3354↓50%4GPL-2.0-or-laterPHPPHP &gt;=8.3.0

Since Apr 12Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/drupal/core-datetime)[ Packagist](https://packagist.org/packages/drupal/core-datetime)[ Docs](https://www.drupal.org/project/drupal)[ RSS](/packages/drupal-core-datetime/feed)WikiDiscussions 11.x Synced 1mo ago

READMEChangelogDependencies (2)Versions (470)Used By (0)

```
The Drupal Datetime Component

Thanks for using this Drupal component.

You can participate in its development on Drupal.org, through our issue system:
https://www.drupal.org/project/issues/drupal

You can get the full Drupal repo here:
https://www.drupal.org/project/drupal/git-instructions

You can browse the full Drupal repo here:
https://git.drupalcode.org/project/drupal
```

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity98

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 58% 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 ~8 days

Recently: every ~0 days

Total

469

Last Release

74d ago

Major Versions

10.6.0 → 11.3.02025-12-17

10.6.1 → 11.3.12025-12-18

10.6.2 → 11.3.32026-02-05

10.6.3 → 11.x-dev2026-02-06

10.6.4 → 11.3.x-dev2026-03-06

PHP version history (5 changes)8.1.0PHP &gt;=5.5.9

8.8.0-alpha1PHP &gt;=7.0.8

9.0.0-alpha1PHP &gt;=7.3.0

10.0.0-beta1PHP &gt;=8.1.0

11.0.0-alpha1PHP &gt;=8.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/57428d8f8df89bf80d218b9b6900f6344ca67fea7bb132433f06e1212fc27dea?d=identicon)[Drupal](/maintainers/Drupal)

![](https://avatars.githubusercontent.com/u/27288432?v=4)[Drupal Infrastructure](/maintainers/Drupal-Infrastructure)[@Drupal-Infrastructure](https://github.com/Drupal-Infrastructure)

---

Top Contributors

[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (29 commits)")[![longwave](https://avatars.githubusercontent.com/u/197817?v=4)](https://github.com/longwave "longwave (5 commits)")[![xjm](https://avatars.githubusercontent.com/u/1369057?v=4)](https://github.com/xjm "xjm (4 commits)")[![larowlan](https://avatars.githubusercontent.com/u/555254?v=4)](https://github.com/larowlan "larowlan (3 commits)")[![webchick](https://avatars.githubusercontent.com/u/332535?v=4)](https://github.com/webchick "webchick (3 commits)")[![jhodgdon-drp](https://avatars.githubusercontent.com/u/2294278?v=4)](https://github.com/jhodgdon-drp "jhodgdon-drp (2 commits)")[![junowilderness](https://avatars.githubusercontent.com/u/1977311?v=4)](https://github.com/junowilderness "junowilderness (2 commits)")[![goba](https://avatars.githubusercontent.com/u/235185?v=4)](https://github.com/goba "goba (1 commits)")[![effulgentsia](https://avatars.githubusercontent.com/u/477547?v=4)](https://github.com/effulgentsia "effulgentsia (1 commits)")

---

Tags

drupal

### Embed Badge

![Health badge](/badges/drupal-core-datetime/health.svg)

```
[![Health](https://phpackages.com/badges/drupal-core-datetime/health.svg)](https://phpackages.com/packages/drupal-core-datetime)
```

###  Alternatives

[lullabot/amp

A set of useful classes and utilities to convert html to AMP html (See https://www.ampproject.org/)

3802.9M10](/packages/lullabot-amp)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[aleksip/plugin-data-transform

Data Transform Plugin for Pattern Lab PHP

34897.4k3](/packages/aleksip-plugin-data-transform)[acquia/drupal-recommended-settings

The composer plugin for adding drupal-recommended-settings for Acquia Cloud.

101.1M4](/packages/acquia-drupal-recommended-settings)[tripal/tripal

Tripal is a toolkit to facilitate construction of online genomic, genetic (and other biological) websites.

709.9k9](/packages/tripal-tripal)

PHPackages © 2026

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