PHPackages                             district5/date - 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. district5/date

ActiveLibrary

district5/date
==============

District5 Date Library

3.0.4(1y ago)0671↑36.4%3mitPHPPHP &gt;=8.1CI passing

Since Dec 7Pushed 1y agoCompare

[ Source](https://github.com/district-5/php-date)[ Packagist](https://packagist.org/packages/district5/date)[ Docs](https://github.com/district-5/php-date)[ RSS](/packages/district5-date/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (20)Used By (3)

Date
====

[](#date)

[![CI](https://github.com/district-5/php-date/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/district-5/php-date/actions)[![Latest Stable Version](https://camo.githubusercontent.com/1bf19247580b14d701a41fb83965f20b781f826d7ca15876d79eafc16032dfeb/687474703a2f2f706f7365722e707567782e6f72672f6469737472696374352f646174652f76)](https://packagist.org/packages/district5/date)[![PHP Version Require](https://camo.githubusercontent.com/f525df4728c2faf0b05cf5ae7647cb4cae0351a5e462047dc542ce9d489564a3/687474703a2f2f706f7365722e707567782e6f72672f6469737472696374352f646174652f726571756972652f706870)](https://packagist.org/packages/district5/date)[![Codecov](https://camo.githubusercontent.com/aa7ea8f25ae723ffcfdd332f97e3949f77e0dc9c80c32bce81c1f7b566b777f8/68747470733a2f2f636f6465636f762e696f2f67682f64697374726963742d352f7068702d646174652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/district-5/php-date)

About
-----

[](#about)

This library comprises two distinct libraries. The old `Date` library, and the new library. It supports most date functionality.

Installing
----------

[](#installing)

This library requires no other libraries.

```
composer require district5/date

```

### Running Unit Tests:

[](#running-unit-tests)

Unit tests are only against the new library, within the `\District5\Date` namespace.

```
$ composer install --dev
$ ./vendor/bin/phpunit

```

Usage
-----

[](#usage)

 Now dates```
